]> git.lyx.org Git - lyx.git/commit
DocBook: output inline equations in their own paragraph if they are the only inset...
authorThibaut Cuvelier <tcuvelier@lyx.org>
Sun, 18 Oct 2020 06:15:54 +0000 (08:15 +0200)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Sun, 18 Oct 2020 06:23:36 +0000 (08:23 +0200)
commit739735ab73e46d8f7c64b8f78ce7265a711b8468
tree61fc59eb0302b0af0f1faa8c0a81debf81c543f8
parent3a452a240b8d8668633158b03da85bbb8cd99db5
DocBook: output inline equations in their own paragraph if they are the only inset of the paragraph.

It's invalid to have an <inlineequation> outside a paragraph. Another solution would have been to change InsetMathHull::docbook to generate an <informalequation>, but that function would have required more knowledge about its context than now.

Need more tests to determine if <inlineequation> should only be output for hullSimple or in more cases like:

const static std::set<HullType> inlineHulls = {
hullUnknown,
hullNone,
hullSimple,
hullEquation,
hullMultline,
hullGather,
hullRegexp
};
autotests/export/docbook/doc_de_Math.lyx [new file with mode: 0644]
autotests/export/docbook/doc_de_Math.xml [new file with mode: 0644]
src/output_docbook.cpp