mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
718eeba60f
commit
75fb3e4b6c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user