From: Juergen Spitzmueller Date: Tue, 13 Dec 2016 06:50:08 +0000 (+0100) Subject: Limit ligature protection to quote ligature chars X-Git-Tag: 2.3.0alpha1~628 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d4550b7a4d64e9ff772cf3a7635cb4ca532fb340;p=lyx.git Limit ligature protection to quote ligature chars Should also go to stable. --- diff --git a/src/insets/InsetQuotes.cpp b/src/insets/InsetQuotes.cpp index db1de0fd32..c538b88878 100644 --- a/src/insets/InsetQuotes.cpp +++ b/src/insets/InsetQuotes.cpp @@ -310,7 +310,7 @@ void InsetQuotes::latex(otexstream & os, OutputParams const & runparams) const if (lastchar == '!' || lastchar == '?') qstr.insert(0, "{}"); } - if (qstr[0] == lastchar) + if (contains(from_ascii(",'`<>"), lastchar) && qstr[0] == lastchar) qstr.insert(0, "{}"); }