[LyX/master] DocBook: fix encoding of citations.
Pavel Sanda
sanda at lyx.org
Tue Aug 1 12:57:29 UTC 2023
commit 7b13cccb99a3191e2a81984d0c77995ea3ec5473
Author: Pavel Sanda <sanda at lyx.org>
Date: Tue Aug 1 16:11:21 2023 +0200
DocBook: fix encoding of citations.
Patch from Thibaut.
---
src/insets/InsetCitation.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/insets/InsetCitation.cpp b/src/insets/InsetCitation.cpp
index d878056..a3d58f8 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) {
More information about the lyx-cvs
mailing list