]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetQuotes.cpp
Comments.
[lyx.git] / src / insets / InsetQuotes.cpp
index 0792e15e91dbbb66a3f43c6f239e39d170f1b82f..8586ce18d5372382689ae1cbcacbb93ddede55f5 100644 (file)
@@ -287,8 +287,11 @@ void InsetQuotes::latex(otexstream & os, OutputParams const & runparams) const
        }
 
        // Always guard against unfortunate ligatures (!` ?`)
-       if (prefixIs(qstr, "`"))
-               qstr.insert(0, "{}");
+       if (prefixIs(qstr, "`")) {
+               char_type const lastchar = os.lastChar();
+               if (lastchar == '!' || lastchar == '?')
+                       qstr.insert(0, "{}");
+       }
 
        os << from_ascii(qstr);
 }