mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Do not output label tags if there is no label
This commit is contained in:
parent
b9c52f20c7
commit
b37ac5807f
@ -466,10 +466,13 @@ ParagraphList::const_iterator makeEnvironment(Buffer const & buf,
|
||||
xs << xml::CR();
|
||||
}
|
||||
else {
|
||||
openLabelTag(xs, style);
|
||||
xs << par->params().labelString();
|
||||
closeLabelTag(xs, style);
|
||||
xs << xml::CR();
|
||||
docstring const & ls = par->params().labelString();
|
||||
if (!ls.empty()) {
|
||||
openLabelTag(xs, style);
|
||||
xs << ls;
|
||||
closeLabelTag(xs, style);
|
||||
xs << xml::CR();
|
||||
}
|
||||
}
|
||||
}
|
||||
} // end label output
|
||||
|
Loading…
Reference in New Issue
Block a user