commit 7b13cccb99a3191e2a81984d0c77995ea3ec5473
Author: Pavel Sanda <[email protected]>
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) {
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to