mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix footnote output in description item
Fixes: #9387
(cherry picked from commit aaa6150089
)
This commit is contained in:
parent
55bc365872
commit
3561caa3a1
@ -1490,6 +1490,16 @@ void Paragraph::Private::validate(LaTeXFeatures & features) const
|
||||
for (; icit != iend; ++icit) {
|
||||
if (icit->inset) {
|
||||
features.inDeletedInset(owner_->isDeleted(icit->pos));
|
||||
if (icit->inset->lyxCode() == FOOT_CODE) {
|
||||
// FIXME: an item inset would make things much easier.
|
||||
if ((layout_->latextype == LATEX_LIST_ENVIRONMENT
|
||||
|| (layout_->latextype == LATEX_ITEM_ENVIRONMENT
|
||||
&& layout_->margintype == MARGIN_FIRST_DYNAMIC))
|
||||
&& (icit->pos < begin_of_body_
|
||||
|| (icit->pos == begin_of_body_
|
||||
&& (icit->pos == 0 || text_[icit->pos - 1] != ' '))))
|
||||
features.saveNoteEnv("description");
|
||||
}
|
||||
icit->inset->validate(features);
|
||||
features.inDeletedInset(false);
|
||||
if (layout_->needprotect &&
|
||||
|
Loading…
Reference in New Issue
Block a user