From 9f74aa4fe2a7ede45af11c1e360596e89eaae26a Mon Sep 17 00:00:00 2001 From: Michael Schmitt Date: Sat, 20 Jan 2007 15:35:39 +0000 Subject: [PATCH] * src/output_plaintext.C: fix line breaks in plain text output; add a line break at the end of each paragraph; add a second line break if maximum line length is > 0 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16779 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/output_plaintext.C | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/output_plaintext.C b/src/output_plaintext.C index 4ffc0c6553..e94d5af89c 100644 --- a/src/output_plaintext.C +++ b/src/output_plaintext.C @@ -59,8 +59,10 @@ void writePlaintextFile(Buffer const & buf, odocstream & os, ParagraphList::const_iterator it = beg; for (; it != end; ++it) { writePlaintextParagraph(buf, *it, os, runparams, ref_printed); + os << "\n"; + if (runparams.linelen > 0) + os << "\n"; } - os << "\n"; } @@ -131,9 +133,6 @@ void writePlaintextParagraph(Buffer const & buf, string::size_type currlinelen = 0; - if (runparams.linelen > 0) - os << "\n\n"; - os << docstring(depth * 2, ' '); currlinelen += depth * 2; -- 2.39.5