Consider parbreakIsNewline in plaintext output

Fixes #11886
This commit is contained in:
Juergen Spitzmueller 2020-06-11 10:20:27 +02:00
parent 392aaa11ac
commit 134cb3b265

View File

@ -567,7 +567,7 @@ int InsetText::plaintext(odocstringstream & os,
for (; it != end; ++it) { for (; it != end; ++it) {
if (it != beg) { if (it != beg) {
os << '\n'; os << '\n';
if (runparams.linelen > 0) if (runparams.linelen > 0 && !getLayout().parbreakIsNewline())
os << '\n'; os << '\n';
} }
odocstringstream oss; odocstringstream oss;