From: Juergen Spitzmueller Date: Wed, 14 Dec 2016 08:07:43 +0000 (+0100) Subject: Limit ligature protection to quote ligature chars X-Git-Tag: 2.2.3~119 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=458f03b131a505bf666349f3c5bf0a1bebbd7ace;p=features.git Limit ligature protection to quote ligature chars No status entry necessary (this is and emendment to an existing fix) --- diff --git a/src/insets/InsetQuotes.cpp b/src/insets/InsetQuotes.cpp index 26a3d33e11..1274367950 100644 --- a/src/insets/InsetQuotes.cpp +++ b/src/insets/InsetQuotes.cpp @@ -296,7 +296,7 @@ void InsetQuotes::latex(otexstream & os, OutputParams const & runparams) const if (lastchar == '!' || lastchar == '?') qstr.insert(0, "{}"); } - if (qstr[1] == lastchar) + if (contains(from_ascii(",'`<>"), lastchar) && qstr[0] == lastchar) qstr.insert(0, "{}"); os << from_ascii(qstr);