]> git.lyx.org Git - lyx.git/commitdiff
Fix output of floats, etc, inside environments.
authorRichard Heck <rgheck@lyx.org>
Sun, 31 Jul 2016 07:18:32 +0000 (03:18 -0400)
committerRichard Heck <rgheck@lyx.org>
Sun, 31 Jul 2016 07:18:32 +0000 (03:18 -0400)
Fixes bug #9094.

src/output_xhtml.cpp

index 1dd4ef1bda1c73d0482a6a99f2b68185cfe8b3a4..e87fe23750232b3aaa7223a3c67064329d17ba73 100644 (file)
@@ -1011,8 +1011,9 @@ ParagraphList::const_iterator makeEnvironment(Buffer const & buf,
                                if (labelfirst)
                                        openItemTag(xs, style, par->params());
 
-                               par->simpleLyXHTMLOnePar(buf, xs, runparams,
+                               docstring deferred = par->simpleLyXHTMLOnePar(buf, xs, runparams,
                                        text.outerFont(distance(begin, par)), true, true, sep);
+                               xs << XHTMLStream::ESCAPE_NONE << deferred;
                                ++par;
 
                                // We may not want to close the tag yet, in particular: