]> git.lyx.org Git - lyx.git/blobdiff - src/output_plaintext.C
ws changes mostly
[lyx.git] / src / output_plaintext.C
index d29f5024ed2607a611d197ca18aaa9f57a0a9292..4b4be01ad14d6cad4174e114ff223bbf74315b0d 100644 (file)
 #include "ParagraphList_fwd.h"
 #include "ParagraphParameters.h"
 
-#include "support/gzstream.h"
 #include "support/lstrings.h"
 
+#include <fstream>
+
 using lyx::support::ascii_lowercase;
 using lyx::support::compare_ascii_no_case;
 using lyx::support::compare_no_case;
@@ -206,7 +207,9 @@ void asciiParagraph(Buffer const & buf,
                                currlinelen += word.length();
                                word.erase();
                        }
-                       if (inset->plaintext(buf, os, runparams)) {
+                       OutputParams rp = runparams;
+                       rp.depth = par.params().depth();
+                       if (inset->plaintext(buf, os, rp)) {
                                // to be sure it breaks paragraph
                                currlinelen += runparams.linelen;
                        }