]> git.lyx.org Git - features.git/commitdiff
DocBook: fix encoding of citations.
authorPavel Sanda <sanda@lyx.org>
Tue, 1 Aug 2023 14:11:21 +0000 (16:11 +0200)
committerPavel Sanda <sanda@lyx.org>
Tue, 1 Aug 2023 14:11:21 +0000 (16:11 +0200)
Patch from Thibaut.

src/insets/InsetCitation.cpp

index d878056cd6a3be952cde07254d49c0c5155a267d..a3d58f87e8a2d68e27827dc2e8b8b15ac1383913 100644 (file)
@@ -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) {