* 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
This commit is contained in:
Michael Schmitt 2007-01-20 15:35:39 +00:00
parent c73e175f04
commit 9f74aa4fe2

View 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;