Fix page range without page format

This commit is contained in:
Juergen Spitzmueller 2022-11-04 07:57:56 +01:00
parent 4bb576e940
commit d41e0c9231

View File

@ -169,6 +169,9 @@ void InsetIndex::latex(otexstream & ios, OutputParams const & runparams_in) cons
os << "|";
os << insetindexpagerangetranslator_latex().find(params_.range);
os << from_utf8(params_.pagefmt);
} else if (params_.range != InsetIndexParams::PageRange::None) {
os << "|";
os << insetindexpagerangetranslator_latex().find(params_.range);
}
} else {
// We check whether we need a sort key.
@ -267,6 +270,9 @@ void InsetIndex::latex(otexstream & ios, OutputParams const & runparams_in) cons
os << "|"
<< insetindexpagerangetranslator_latex().find(params_.range)
<< cmd;
} else if (params_.range != InsetIndexParams::PageRange::None) {
os << "|";
os << insetindexpagerangetranslator_latex().find(params_.range);
}
}
os << '}';