mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
* 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:
parent
c73e175f04
commit
9f74aa4fe2
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user