Am Dienstag, dem 08.10.2024 um 10:36 +0200 schrieb Jürgen Spitzmüller: > No need not to escape & AFAICS.
But here is a more conservative approach for the case &...; tags are used. -- Jürgen
diff --git a/src/insets/InsetCitation.cpp b/src/insets/InsetCitation.cpp index 73a17e70ff..ec3374f47f 100644 --- a/src/insets/InsetCitation.cpp +++ b/src/insets/InsetCitation.cpp @@ -663,7 +663,9 @@ docstring InsetCitation::xhtml(XMLStream & xs, OutputParams const &) const return docstring(); // have to output this raw, because generateLabel() will include tags - xs << XMLStream::ESCAPE_NONE << generateLabel(true); + // but we need to escape standalone ampersands + xs << XMLStream::ESCAPE_NONE + << subst(generateLabel(true), from_ascii(" & "), from_ascii(" & ")); return docstring(); }
signature.asc
Description: This is a digitally signed message part
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel