]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
* id.po: update from Waluyo.
[lyx.git] / src / Buffer.cpp
index b4e03b99d08e2385b450c53b6955d2245d3b6d8a..4b98221c99363e17f72001d8e19aaf1c400cebd3 100644 (file)
@@ -127,7 +127,7 @@ namespace {
 
 // Do not remove the comment below, so we get merge conflict in
 // independent branches. Instead add your own.
-int const LYX_FORMAT = 410; // rgh: dummy format for list->labeling
+int const LYX_FORMAT = 412; // edwin: set tabular width
 
 typedef map<string, bool> DepClean;
 typedef map<docstring, pair<InsetLabel const *, Buffer::References> > RefCache;
@@ -1366,8 +1366,7 @@ void Buffer::writeLaTeXSource(odocstream & os,
        if (output_preamble) {
                if (!runparams.nice) {
                        // code for usual, NOT nice-latex-file
-                       os << "\\batchmode\n"; // changed
-                       // from \nonstopmode
+                       os << "\\batchmode\n"; // changed from \nonstopmode
                        d->texrow.newline();
                }
                if (!original_path.empty()) {
@@ -1454,7 +1453,8 @@ void Buffer::writeLaTeXSource(odocstream & os,
        }
 
        // the real stuff
-       latexParagraphs(*this, text(), os, d->texrow, runparams);
+       otexstream ots(os);
+       latexParagraphs(*this, text(), ots, d->texrow, runparams);
 
        // Restore the parenthood if needed
        if (output_preamble)
@@ -3133,9 +3133,11 @@ void Buffer::getSourceCode(odocstream & os, string const format,
                else if (runparams.flavor == OutputParams::HTML) {
                        XHTMLStream xs(os);
                        xhtmlParagraphs(text(), *this, xs, runparams);
-               } else 
+               } else {
                        // latex or literate
-                       latexParagraphs(*this, text(), os, texrow, runparams);
+                       otexstream ots(os);
+                       latexParagraphs(*this, text(), ots, texrow, runparams);
+               }
        }
 }