From 75fb3e4b6cf47cde6e466220e0c8d307bf5512b4 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 26 Jan 2013 09:53:53 +0100 Subject: [PATCH] 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) --- src/insets/InsetSpecialChar.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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)); + } } -- 2.39.2