]> git.lyx.org Git - features.git/commitdiff
Limit ligature protection to quote ligature chars
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 14 Dec 2016 08:07:43 +0000 (09:07 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Wed, 14 Dec 2016 08:07:43 +0000 (09:07 +0100)
No status entry necessary (this is and emendment to an existing fix)

src/insets/InsetQuotes.cpp

index 26a3d33e11fbf7d149f79d0467c7a42292605a43..1274367950e2c4cd1bd710891555e80a3d582a11 100644 (file)
@@ -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);