DocBook: use the same normalisation for biblio IDs and their references.

This commit is contained in:
Thibaut Cuvelier 2020-10-27 00:49:26 +01:00
parent da6e999fc6
commit df0ea858ed
2 changed files with 6 additions and 2 deletions

View File

@ -417,6 +417,9 @@ export/export/latex/textcyr-textgreek-test_docbook5
export/examples/.*/Graphics_and_Insets/XY-Figure_docbook5
# - Formula in <code> tags.
export/examples/.*/Graphics_and_Insets/XY-Pic_docbook5
export/examples/.*/Graphics_and_Insets/XY-Figure_docbook5
# - Formula in <code> tags.
export/examples/.*/Graphics_and_Insets/XY-Pic_docbook5
# - Math macros not implemented.
export/mathmacros/testcases_speed_docbook5
export/mathmacros/testcases_environments_docbook5
@ -445,5 +448,5 @@ export/templates/Posters/.*_docbook5
Sublabel: docbook beamer
# Beamer is not yet implemented.
export/examples/Presentations/.*_docbook5
export/templates/Presentations/.*_docbook5
export/templates/.*/Presentations/Beamer_docbook5
export/templates/Presentations/.*_docbook5

View File

@ -376,7 +376,8 @@ void makeBibliography(
if (!ip)
continue;
if (const auto * bibitem = dynamic_cast<const InsetBibitem*>(ip)) {
attr = from_utf8("xml:id='") + bibitem->getParam("key") + from_utf8("'");
auto id = xml::cleanID(bibitem->getParam("key"));
attr = from_utf8("xml:id='") + id + from_utf8("'");
break;
}
}