]> git.lyx.org Git - lyx.git/blobdiff - src/output_plaintext.cpp
Fix screen display of parts and chapters in default classes
[lyx.git] / src / output_plaintext.cpp
index 15e700eb8f1cf564d92b0eb273483d2942234a3a..9dae951f03915a0f9e2f14751e572d95014d9a1d 100644 (file)
@@ -56,9 +56,11 @@ void writePlaintextFile(Buffer const & buf, odocstream & os,
        ParagraphList::const_iterator end = par.end();
        ParagraphList::const_iterator it = beg;
        for (; it != end; ++it) {
+               bool const merged_par = (*it).parEndChange().deleted();
                writePlaintextParagraph(buf, *it, os, runparams, ref_printed);
-               os << "\n";
-               if (runparams.linelen > 0)
+               if (!merged_par)
+                       os << "\n";
+               if (runparams.linelen > 0 && !merged_par)
                        os << "\n";
        }
 }
@@ -188,7 +190,7 @@ void writePlaintextParagraph(Buffer const & buf,
                if (os.str().size() > max_length)
                        break;
 
-               char_type c = par.getUChar(buf.params(), i);
+               char_type c = par.getUChar(buf.params(), runparams, i);
 
                if (par.isInset(i) || c == ' ') {
                        if (runparams.linelen > 0 &&