From: Pavel Sanda Date: Tue, 1 Aug 2023 14:11:21 +0000 (+0200) Subject: DocBook: fix encoding of citations. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7b13cccb99a3191e2a81984d0c77995ea3ec5473;p=features.git DocBook: fix encoding of citations. Patch from Thibaut. --- diff --git a/src/insets/InsetCitation.cpp b/src/insets/InsetCitation.cpp index d878056cd6..a3d58f87e8 100644 --- a/src/insets/InsetCitation.cpp +++ b/src/insets/InsetCitation.cpp @@ -632,12 +632,12 @@ void InsetCitation::docbook(XMLStream & xs, OutputParams const &) const // DocBook does not support having multiple citations in one tag, so that we have to deal with formatting here. docstring citations = getParam("key"); if (citations.find(',') == string::npos) { - xs << xml::CompTag("biblioref", "endterm=\"" + to_utf8(xml::cleanID(citations)) + "\""); + xs << xml::CompTag("biblioref", "linkend=\"" + to_utf8(xml::cleanID(citations)) + "\""); } else { size_t pos = 0; while (pos != string::npos) { pos = citations.find(','); - xs << xml::CompTag("biblioref", "endterm=\"" + to_utf8(xml::cleanID(citations.substr(0, pos))) + "\""); + xs << xml::CompTag("biblioref", "linkend=\"" + to_utf8(xml::cleanID(citations.substr(0, pos))) + "\""); citations.erase(0, pos + 1); if (pos != string::npos) {