From 134cb3b26599c504afee68d0fb4876fc31ec0098 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 11 Jun 2020 10:20:27 +0200 Subject: [PATCH] Consider parbreakIsNewline in plaintext output Fixes #11886 --- src/insets/InsetText.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp index 091f8aded1..c76f0dbf4a 100644 --- a/src/insets/InsetText.cpp +++ b/src/insets/InsetText.cpp @@ -567,7 +567,7 @@ int InsetText::plaintext(odocstringstream & os, for (; it != end; ++it) { if (it != beg) { os << '\n'; - if (runparams.linelen > 0) + if (runparams.linelen > 0 && !getLayout().parbreakIsNewline()) os << '\n'; } odocstringstream oss;