From: Juergen Spitzmueller Date: Fri, 27 Dec 2019 08:01:06 +0000 (+0100) Subject: Correctly show merged paragraphs with ct in plain text output X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a8b520834b6082ba3c54d47d73083e5461b621fa;p=features.git Correctly show merged paragraphs with ct in plain text output Fixes #3137 --- diff --git a/src/output_plaintext.cpp b/src/output_plaintext.cpp index 8c5655d39b..9dae951f03 100644 --- a/src/output_plaintext.cpp +++ b/src/output_plaintext.cpp @@ -56,9 +56,11 @@ void writePlaintextFile(Buffer const & buf, odocstream & os, ParagraphList::const_iterator end = par.end(); ParagraphList::const_iterator it = beg; for (; it != end; ++it) { + bool const merged_par = (*it).parEndChange().deleted(); writePlaintextParagraph(buf, *it, os, runparams, ref_printed); - os << "\n"; - if (runparams.linelen > 0) + if (!merged_par) + os << "\n"; + if (runparams.linelen > 0 && !merged_par) os << "\n"; } }