mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
ABOVE and CENTERED labels need special treatment.
Fixes bug #8843.
(cherry picked from commit 08bf9781ee
)
This commit is contained in:
parent
c52f30f253
commit
bfeee826b4
@ -1058,13 +1058,23 @@ void makeCommand(Buffer const & buf,
|
||||
|
||||
bool const make_parid = !runparams.for_toc && runparams.html_make_pars;
|
||||
|
||||
if (style.labeltype == LABEL_ABOVE)
|
||||
xs << html::StartTag("div")
|
||||
<< pbegin->params().labelString()
|
||||
<< html::EndTag("div");
|
||||
else if (style.labeltype == LABEL_CENTERED)
|
||||
xs << html::StartTag("div", "style = \"text-align: center;\"")
|
||||
<< pbegin->params().labelString()
|
||||
<< html::EndTag("div");
|
||||
|
||||
openParTag(xs, style, pbegin->params(),
|
||||
make_parid ? pbegin->magicLabel() : "");
|
||||
|
||||
// Label around sectioning number:
|
||||
// FIXME Probably need to account for LABEL_MANUAL
|
||||
// FIXME Probably also need now to account for labels ABOVE and CENTERED.
|
||||
if (style.labeltype != LABEL_NO_LABEL) {
|
||||
if (style.labeltype != LABEL_NO_LABEL &&
|
||||
style.labeltype != LABEL_ABOVE &&
|
||||
style.labeltype != LABEL_CENTERED ) {
|
||||
openLabelTag(xs, style);
|
||||
xs << pbegin->params().labelString();
|
||||
closeLabelTag(xs, style);
|
||||
|
@ -171,6 +171,8 @@ What's new
|
||||
|
||||
- Fix output of vertical space in the middle of a paragraph (bug 8154).
|
||||
|
||||
- Fix output of ABOVE and CENTERED label types (bug 8843).
|
||||
|
||||
- Output correct entities for named delimiters (bug 8280).
|
||||
|
||||
- Added class attribute for mathbb to allow customization (part of bug
|
||||
|
Loading…
Reference in New Issue
Block a user