]> git.lyx.org Git - features.git/commitdiff
* src/output_plaintext.C: fix line breaks in plain text output;
authorMichael Schmitt <michael.schmitt@teststep.org>
Sat, 20 Jan 2007 15:35:39 +0000 (15:35 +0000)
committerMichael Schmitt <michael.schmitt@teststep.org>
Sat, 20 Jan 2007 15:35:39 +0000 (15:35 +0000)
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

index 4ffc0c655382b1ba8f151e127caa41bd32149591..e94d5af89c7a6a0699e2117b829ee2f7c5b1dbe8 100644 (file)
@@ -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;