X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Foutput_plaintext.C;h=ae70ac44d14fae4d71e5ec022be9c72b044c6ad0;hb=d4f8fe124906af839a02d1ad3b7894e14fb69a37;hp=f363c0b1549e1fcd490bb025bb722d86a2877e95;hpb=954f6feee75eb4b6c212f4b41521e84e14d2f696;p=lyx.git diff --git a/src/output_plaintext.C b/src/output_plaintext.C index f363c0b154..ae70ac44d1 100644 --- a/src/output_plaintext.C +++ b/src/output_plaintext.C @@ -152,7 +152,7 @@ void writePlaintextParagraph(Buffer const & buf, os << _("Abstract") << "\n\n"; currlinelen = 0; } else { - docstring const abst = _("Abstract") + from_ascii(": "); + docstring const abst = _("Abstract: "); os << abst; currlinelen += abst.length(); } @@ -164,7 +164,7 @@ void writePlaintextParagraph(Buffer const & buf, os << _("References") << "\n\n"; currlinelen = 0; } else { - docstring const refs = _("References") + from_ascii(": "); + docstring const refs = _("References: "); os << refs; currlinelen += refs.length(); } @@ -215,7 +215,7 @@ void writePlaintextParagraph(Buffer const & buf, case ' ': if (runparams.linelen > 0 && - currlinelen + word.length() > runparams.linelen - 10) { + currlinelen + word.length() > runparams.linelen) { os << '\n'; pair p = addDepth(depth, ltype_depth); os << p.second; @@ -233,17 +233,17 @@ void writePlaintextParagraph(Buffer const & buf, default: word += c; - if (runparams.linelen > 0 && - currlinelen + word.length() > runparams.linelen) - { - os << '\n'; - pair p = addDepth(depth, ltype_depth); - os << p.second; - currlinelen = p.first; - } break; } } + + if (runparams.linelen > 0 && + currlinelen + word.length() > runparams.linelen) { + os << '\n'; + pair p = addDepth(depth, ltype_depth); + os << p.second; + currlinelen = p.first; + } os << word; }