Fix thinko from earlier commit.

We need to output the deferred material AFTER the paragraph is closed.
This commit is contained in:
Richard Heck 2016-07-30 01:30:37 -04:00
parent 9d3917a4b6
commit c760707548

View 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;
}