]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetSpecialChar.cpp
Math.lyx, Tutorial.lyx: fix some typos spotted by a user
[lyx.git] / src / insets / InsetSpecialChar.cpp
index 9e7346ffbf6c307fb2064a991438ab294ea8338a..0099fc4e1ee750eaae4ff260b32d0cbfde0edc7a 100644 (file)
@@ -323,7 +323,14 @@ docstring InsetSpecialChar::xhtml(XHTMLStream & xs, OutputParams const &) const
 
 void InsetSpecialChar::toString(odocstream & os) const
 {
-       plaintext(os, OutputParams(0));
+       switch (kind_) {
+       case LIGATURE_BREAK:
+               // Do not output ZERO WIDTH NON JOINER here
+               // Spell checker would choke on it.
+               return;
+       default:
+               plaintext(os, OutputParams(0));
+       }
 }