DocBook: improve new lines around maths.

This commit is contained in:
Thibaut Cuvelier 2020-08-01 21:43:44 +02:00
parent d3e1f2a6d4
commit c1ec3394c6

View File

@ -2424,6 +2424,7 @@ void InsetMathHull::docbook(XMLStream & xs, OutputParams const & runparams) cons
}
xs << xml::StartTag(name, attr);
xs << xml::CR();
// With DocBook 5, MathML must be within its own namespace; defined in Buffer.cpp::writeDocBookSource as "m".
// Output everything in a separate stream so that this does not interfere with the standard flow of DocBook tags.
@ -2465,6 +2466,7 @@ void InsetMathHull::docbook(XMLStream & xs, OutputParams const & runparams) cons
// Output the complete formula to the DocBook stream.
xs << XMLStream::ESCAPE_NONE << osmath.str();
xs << xml::CR();
xs << xml::EndTag(name);
}