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)
This commit is contained in:
Juergen Spitzmueller 2013-01-26 09:53:53 +01:00
parent 718eeba60f
commit 75fb3e4b6c

View File

@ -323,8 +323,15 @@ docstring InsetSpecialChar::xhtml(XHTMLStream & xs, OutputParams const &) const
void InsetSpecialChar::toString(odocstream & os) const
{
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));
}
}
void InsetSpecialChar::forToc(docstring & os, size_t) const