commit eb88f5c19848aab40a38168f3dc1b95fc1413085
Author: Thibaut Cuvelier <[email protected]>
Date: Sat May 10 02:26:08 2025 +0200
Simplify InsetFloat::xhtml without changing behaviour.
---
src/insets/InsetFloat.cpp | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/insets/InsetFloat.cpp b/src/insets/InsetFloat.cpp
index c5c901b8e2..7f9c5f513c 100644
--- a/src/insets/InsetFloat.cpp
+++ b/src/insets/InsetFloat.cpp
@@ -364,19 +364,15 @@ docstring InsetFloat::xhtml(XMLStream & xs, OutputParams
const & rp) const
InsetText::insetAsXHTML(newxs, rp, opts);
newxs << xml::EndTag(htmltype);
- docstring deferred;
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;
+ return ods.str();
} 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
+ // Things will already have been escaped, so we do not
// want to escape them again.
xs << XMLStream::ESCAPE_NONE << ods.str();
}
- return deferred;
}
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs