]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCitation.cpp
DocBook: escape IDs for InsetRef.
[lyx.git] / src / insets / InsetCitation.cpp
index 337c4bb2dd6324f827039a936702adb6c84840c8..a5253166d9f2dd5cae97a81f666493badb8a805c 100644 (file)
@@ -24,7 +24,7 @@
 #include "FuncStatus.h"
 #include "LaTeXFeatures.h"
 #include "output_xhtml.h"
-#include <output_docbook.h>
+#include "output_docbook.h"
 #include "ParIterator.h"
 #include "texstream.h"
 #include "TocBackend.h"
@@ -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 {