From f1cd24243f8e96a3fd405f4616e5e5559d77c994 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 29 Jul 2016 23:59:24 -0400 Subject: [PATCH] Be more careful with braces, due to comments. --- src/insets/InsetFloat.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetFloat.cpp b/src/insets/InsetFloat.cpp index 8d35c646cc..e1538e2635 100644 --- a/src/insets/InsetFloat.cpp +++ b/src/insets/InsetFloat.cpp @@ -306,16 +306,17 @@ docstring InsetFloat::xhtml(XHTMLStream & xs, OutputParams const & rp) const docstring deferred = InsetText::insetAsXHTML(newxs, rp, opts); 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 // before anything the text itself deferred. deferred = ods.str() + '\n' + deferred; - else + } else { // In this case, the whole thing is already being deferred, so // we can write to the stream. // Note that things will already have been escaped, so we do not // want to escape them again. xs << XHTMLStream::ESCAPE_NONE << ods.str(); + } return deferred; }