mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-27 02:19:10 +00:00
DocBook: ensure that tables do not get wrapped in a paragraph.
This commit is contained in:
parent
f82b26e1b7
commit
7f8d0fd7b7
@ -453,6 +453,10 @@ void makeParagraph(
|
||||
special_case |= nInsets == (size_t) par->size() && std::all_of(par->insetList().begin(), par->insetList().end(), [](InsetList::Element inset) {
|
||||
return inset.inset && inset.inset->asInsetMath() && inset.inset->asInsetMath()->getType() != hullSimple;
|
||||
});
|
||||
// Tables doe not deserve their own paragraphs (DocBook allows them outside paragraphs).
|
||||
special_case |= nInsets == (size_t) par->size() && std::all_of(par->insetList().begin(), par->insetList().end(), [](InsetList::Element inset) {
|
||||
return inset.inset->lyxCode() == TABULAR_CODE;
|
||||
});
|
||||
// Floats cannot be in paragraphs.
|
||||
special_case |= nInsets == (size_t) par->size() && std::all_of(par->insetList().begin(), par->insetList().end(), [](InsetList::Element inset) {
|
||||
return inset.inset->lyxCode() == FLOAT_CODE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user