Toc & toc = buffer().tocBackend().toc("footnote");
docstring str;
- str = custom_label_ + ": " + getNewLabel(str);
+ str = custom_label_ + ": " + text().getPar(0).asString();
toc.push_back(TocItem(pit, 0, str));
// Proceed with the rest of the inset.
InsetFootlike::addToToc(cpit);
Toc & toc = buffer().tocBackend().toc("marginalnote");
docstring str;
- str = getNewLabel(str);
+ str = text().getPar(0).asString();
toc.push_back(TocItem(pit, 0, str));
// Proceed with the rest of the inset.
InsetFootlike::addToToc(cpit);
Toc & toc = buffer().tocBackend().toc("note");
docstring str;
str = notetranslator_loc().find(params_.type) + from_ascii(": ")
- + getNewLabel(str);
+ + text().getPar(0).asString();
toc.push_back(TocItem(pit, 0, str));
// Proceed with the rest of the inset.
InsetCollapsable::addToToc(cpit);