commit ca01edf59fe79320bd2ec53ab6b7495bd1d53a5b
Author: Thibaut Cuvelier <[email protected]>
Date:   Tue Jul 21 02:44:11 2020 +0200

    DocBook: escape IDs for InsetRef.
---
 src/insets/InsetRef.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/insets/InsetRef.cpp b/src/insets/InsetRef.cpp
index d41f0a1..c5d097a 100644
--- a/src/insets/InsetRef.cpp
+++ b/src/insets/InsetRef.cpp
@@ -354,7 +354,7 @@ void InsetRef::docbook(XMLStream & xs, OutputParams const 
&) const
        }
 
        // No name, ask DocBook to generate one.
-       docstring attr = from_utf8("linkend=\"") + ref + from_utf8("\"");
+       docstring attr = from_utf8("linkend=\"") + xml::cleanID(ref) + 
from_utf8("\"");
        if (!role.empty())
                attr += " role=\"" + role + "\"";
        xs << display_before;
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to