}
-docstring xml::cleanID(docstring const &orig)
+docstring xml::cleanID(docstring const & orig)
{
// The standard xml:id only allows letters,
// digits, '-' and '.' in a name.
if (mangle) {
int & mangleID = tMangleID.localData();
content += "-" + convert<docstring>(mangleID++);
- } else if (isDigitASCII(content[content.size() - 1]))
- content += ".";
+ }
mangledNames[orig] = content;