mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
DocBook: escape IDs for InsetRef.
This commit is contained in:
parent
1fa60342be
commit
ca01edf59f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user