}
-int InsetSpecialChar::plaintext(odocstream & os, OutputParams const &) const
+int InsetSpecialChar::plaintext(odocstringstream & os,
+ OutputParams const &, size_t) const
{
switch (kind_) {
case HYPHENATION:
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:
+ break;
+ }
+ odocstringstream ods;
+ plaintext(ods, OutputParams(0));
+ os << ods.str();
}