]> git.lyx.org Git - features.git/commitdiff
Do not output ZERO WIDTH NON JOINER glyph for ligature break via toString
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 26 Jan 2013 08:53:53 +0000 (09:53 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 26 Jan 2013 08:53:53 +0000 (09:53 +0100)
I do not see where this is really useful (contrary to real plaintext). And it breaks spell checking with hunspell and 8bit disctionaries (part of bug #8526)

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));
+       }
 }