]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.cpp
Some things did not need to be mutable after all
[lyx.git] / src / insets / InsetText.cpp
index 99b1381f93d9961914dfd163d4c58ab0bd247bb7..1222a69a3023de3c57b8359b612ac4ef6812c60c 100644 (file)
@@ -48,6 +48,7 @@
 #include "Row.h"
 #include "sgml.h"
 #include "TexRow.h"
+#include "texstream.h"
 #include "TextClass.h"
 #include "Text.h"
 #include "TextMetrics.h"
@@ -612,7 +613,9 @@ docstring InsetText::insetAsXHTML(XHTMLStream & xs, OutputParams const & rp,
        runparams.par_end = text().paragraphs().size();
        
        if (undefined()) {
+               xs.startDivision(false);
                xhtmlParagraphs(text_, buffer(), xs, runparams);
+               xs.endDivision();
                return docstring();
        }
 
@@ -646,7 +649,9 @@ docstring InsetText::insetAsXHTML(XHTMLStream & xs, OutputParams const & rp,
        if (il.isPassThru())
                runparams.pass_thru = true;
 
+       xs.startDivision(false);
        xhtmlParagraphs(text_, buffer(), xs, runparams);
+       xs.endDivision();
 
        if (opts & WriteInnerTag)
                xs << html::EndTag(il.htmlinnertag());