}
}
else {
- // We don't want to output p_["name"], since that is only used
- // in docbook. So we construct new params, without it, and use that.
InsetCommandParams p(REF_CODE, cmd);
docstring const ref = getParam("reference");
p["reference"] = ref;
}
// 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;