[LyX/master] DocBook: clean citation keys everywhere in the same way.

Thibaut Cuvelier tcuvelier at lyx.org
Mon Jul 20 00:05:22 UTC 2020


commit be3e79c2a00991ed4056020266fa8185da0c68ba
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date:   Mon Jul 20 02:28:28 2020 +0200

    DocBook: clean citation keys everywhere in the same way.
---
 src/insets/InsetCitation.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/insets/InsetCitation.cpp b/src/insets/InsetCitation.cpp
index 5d35f9d..a525316 100644
--- a/src/insets/InsetCitation.cpp
+++ b/src/insets/InsetCitation.cpp
@@ -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 {


More information about the lyx-cvs mailing list