]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
Initialize nextraw_. The first character of the outputted html file was represented...
[lyx.git] / src / Buffer.cpp
index 55090abc47ceebb9b7dd4704a8b097b2873861de..4968d3cfc33f0367e91c76f40644eca403b0ceba 100644 (file)
@@ -1445,8 +1445,9 @@ void Buffer::writeLyXHTMLSource(odocstream & os,
                os << "</head>\n<body>\n";
        }
 
+       XHTMLStream xs(os);
        params().documentClass().counters().reset();
-       xhtmlParagraphs(text(), *this, os, runparams);
+       xhtmlParagraphs(text(), *this, xs, runparams);
        if (!only_body)
                os << "</body>\n</html>\n";
 }
@@ -1762,7 +1763,6 @@ void Buffer::dispatch(FuncRequest const & func, DispatchResult & dr)
                        lyx::dispatch(FuncRequest(LFUN_DIALOG_SHOW, "sendto"));
                        break;
                }
-               doExport(argument, false);
                bool success = doExport(argument, false);
                dr.setError(success);
                if (!success)