From: Juergen Spitzmueller Date: Sat, 26 Jan 2013 08:53:53 +0000 (+0100) Subject: Do not output ZERO WIDTH NON JOINER glyph for ligature break via toString X-Git-Tag: 2.1.0beta1~856 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=75fb3e4b6cf47cde6e466220e0c8d307bf5512b4;p=features.git Do not output ZERO WIDTH NON JOINER glyph for ligature break via toString 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) --- diff --git a/src/insets/InsetSpecialChar.cpp b/src/insets/InsetSpecialChar.cpp index 9e7346ffbf..0099fc4e1e 100644 --- a/src/insets/InsetSpecialChar.cpp +++ b/src/insets/InsetSpecialChar.cpp @@ -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)); + } }