FindAdv: Discard the optional arguments of \part, \chapter, ...

Not easy selectable anyway, and hard to use while searching.
This commit is contained in:
Kornel Benko 2021-01-14 23:25:58 +01:00
parent be19fdee3a
commit dff9438a36

View File

@ -2085,6 +2085,10 @@ void LatexInfo::buildEntries(bool isPatternString)
key += interval_.par.substr(params, optend-params);
evaluatingOptional = true;
optionalEnd = optend;
if (found.keytype == KeyInfo::isSectioning) {
// Remove optional values (but still keep in header)
interval_.addIntervall(params, optend);
}
}
string token = sub.str(7);
int closings;