Correctly show merged paragraphs with ct in plain text output

Fixes #3137
This commit is contained in:
Juergen Spitzmueller 2019-12-27 09:01:06 +01:00
parent c096382beb
commit 117e63b01b

View File

@ -56,9 +56,11 @@ void writePlaintextFile(Buffer const & buf, odocstream & os,
ParagraphList::const_iterator end = par.end(); ParagraphList::const_iterator end = par.end();
ParagraphList::const_iterator it = beg; ParagraphList::const_iterator it = beg;
for (; it != end; ++it) { for (; it != end; ++it) {
bool const merged_par = (*it).parEndChange().deleted();
writePlaintextParagraph(buf, *it, os, runparams, ref_printed); writePlaintextParagraph(buf, *it, os, runparams, ref_printed);
os << "\n"; if (!merged_par)
if (runparams.linelen > 0) os << "\n";
if (runparams.linelen > 0 && !merged_par)
os << "\n"; os << "\n";
} }
} }