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:
Richard Heck 2010-01-20 21:20:30 +00:00
parent 66bc240240
commit 0568e46eea

View File

@ -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;