DocBook: amend 34ea4080

@ for sorting is implemented at 34ea4080, but the user was still shown a warning (now removed).
This commit is contained in:
Thibaut Cuvelier 2022-09-01 01:13:47 +02:00
parent 35a752e6db
commit f4b0cf9b59

View File

@ -320,14 +320,6 @@ void InsetIndex::docbook(XMLStream & xs, OutputParams const & runparams) const
InsetText::latex(ots, runparams); InsetText::latex(ots, runparams);
docstring latexString = trim(odss.str()); docstring latexString = trim(odss.str());
// Check whether there are unsupported things. @ is supported, but only for sorting, without specific formatting.
if (latexString.find(from_utf8("@\\")) != lyx::docstring::npos) {
docstring error = from_utf8("Unsupported feature: an index entry contains an @\\. "
"Complete entry: \"") + latexString + from_utf8("\"");
LYXERR0(error);
xs << XMLStream::ESCAPE_NONE << (from_utf8("<!-- Output Error: ") + error + from_utf8(" -->\n"));
}
// Handle several indices (indicated in the inset instead of the raw latexString). // Handle several indices (indicated in the inset instead of the raw latexString).
docstring indexType = from_utf8(""); docstring indexType = from_utf8("");
if (buffer().masterBuffer()->params().use_indices) { if (buffer().masterBuffer()->params().use_indices) {