]> git.lyx.org Git - features.git/commitdiff
Fix thinko from earlier commit.
authorRichard Heck <rgheck@lyx.org>
Sat, 30 Jul 2016 05:30:37 +0000 (01:30 -0400)
committerRichard Heck <rgheck@lyx.org>
Sat, 30 Jul 2016 05:30:37 +0000 (01:30 -0400)
We need to output the deferred material AFTER the paragraph is closed.

src/output_xhtml.cpp

index da199111c9820c618aabd3f3b0490739b6473e47..ddcfb1df0d27a90dbbe0b44ce585b3ee057c8456 100644 (file)
@@ -875,13 +875,14 @@ ParagraphList::const_iterator makeParagraphs(Buffer const & buf,
                        runparams, text.outerFont(distance(begin, par)),
                        opened, needclose);
 
-               if (!deferred.empty()) {
+        if (needclose) {
+            closeTag(xs, lay);
+            xs << html::CR();
+        }
+
+        if (!deferred.empty()) {
                        xs << XHTMLStream::ESCAPE_NONE << deferred << html::CR();
                }
-               if (needclose) {
-                       closeTag(xs, lay);
-                       xs << html::CR();
-               }
        }
        return pend;
 }