mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
Proper output of counters in appendix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33121 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
66bc240240
commit
0568e46eea
@ -794,7 +794,7 @@ void makeCommand(Buffer const & buf,
|
||||
// FIXME Probably need to account for LABEL_MANUAL
|
||||
if (style.labeltype != LABEL_NO_LABEL) {
|
||||
openLabelTag(xs, style);
|
||||
xs << pbegin->expandLabel(style, buf.params(), false);
|
||||
xs << pbegin->expandLabel(style, buf.params());
|
||||
closeLabelTag(xs, style);
|
||||
// Otherwise the label might run together with the text
|
||||
xs << from_ascii(" ");
|
||||
@ -821,6 +821,13 @@ void xhtmlParagraphs(Text const & text,
|
||||
|
||||
OutputParams ourparams = runparams;
|
||||
while (par != pend) {
|
||||
if (par->params().startOfAppendix()) {
|
||||
// FIXME: only the counter corresponding to toplevel
|
||||
// sectioning should be reset
|
||||
Counters & cnts = buf.masterBuffer()->params().documentClass().counters();
|
||||
cnts.reset();
|
||||
cnts.appendix(true);
|
||||
}
|
||||
Layout const & style = par->layout();
|
||||
ParagraphList::const_iterator lastpar = par;
|
||||
ParagraphList::const_iterator send;
|
||||
|
Loading…
Reference in New Issue
Block a user