(cherry picked from commit 6484dce51b)
This commit is contained in:
Richard Kimberly Heck 2024-06-01 13:05:12 -04:00
parent 2699a58cd7
commit c97375e46d

View File

@ -5238,8 +5238,7 @@ void Buffer::Impl::setLabel(ParIterator & it, UpdateType utype) const
par.itemdepth = getItemDepth(it);
if (layout.margintype == MARGIN_MANUAL) {
if (par.params().labelWidthString().empty())
par.params().labelWidthString(par.expandLabel(layout, bp));
// nothing to do: empty label width string is fine.
} else if (layout.latextype == LATEX_BIB_ENVIRONMENT) {
// we do not need to do anything here, since the empty case is
// handled during export.