From 7b13cccb99a3191e2a81984d0c77995ea3ec5473 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Tue, 1 Aug 2023 16:11:21 +0200 Subject: [PATCH] DocBook: fix encoding of citations. Patch from Thibaut. --- src/insets/InsetCitation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {