Be more careful with braces, due to comments.

This commit is contained in:
Richard Heck 2016-07-29 23:59:24 -04:00
parent 76e6c77825
commit f1cd24243f

View File

@ -306,16 +306,17 @@ docstring InsetFloat::xhtml(XHTMLStream & xs, OutputParams const & rp) const
docstring deferred = InsetText::insetAsXHTML(newxs, rp, opts); docstring deferred = InsetText::insetAsXHTML(newxs, rp, opts);
newxs << html::EndTag(htmltype); newxs << html::EndTag(htmltype);
if (rp.inFloat == OutputParams::NONFLOAT) if (rp.inFloat == OutputParams::NONFLOAT) {
// In this case, this float needs to be deferred, but we'll put it // In this case, this float needs to be deferred, but we'll put it
// before anything the text itself deferred. // before anything the text itself deferred.
deferred = ods.str() + '\n' + deferred; deferred = ods.str() + '\n' + deferred;
else } else {
// In this case, the whole thing is already being deferred, so // In this case, the whole thing is already being deferred, so
// we can write to the stream. // we can write to the stream.
// Note that things will already have been escaped, so we do not // Note that things will already have been escaped, so we do not
// want to escape them again. // want to escape them again.
xs << XHTMLStream::ESCAPE_NONE << ods.str(); xs << XHTMLStream::ESCAPE_NONE << ods.str();
}
return deferred; return deferred;
} }