]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCitation.cpp
DocBook: escape IDs for InsetRef.
[lyx.git] / src / insets / InsetCitation.cpp
index 5d35f9d5a49f52bacf2282c4bcbe8aa6df2f9c40..a5253166d9f2dd5cae97a81f666493badb8a805c 100644 (file)
@@ -552,7 +552,7 @@ void InsetCitation::docbook(XMLStream & xs, OutputParams const &) const
                return;
 
        // Split the different citations (on ","), so that one tag can be output for each of them.
-       string citations = to_utf8(getParam("key")); // Citation strings are not supposed to be too fancy.
+       string citations = to_utf8(xml::cleanID(getParam("key")));
        if (citations.find(',') == string::npos) {
                xs << xml::CompTag("biblioref", "endterm=\"" + citations + "\"");
        } else {