Skip to content

Commit 2fa7f2a

Browse files
committed
xmllint error in combination with addindex command
When running xmllint on the doxygen documentation we get quiet a few warnings like: ``` html/xmlcmds.html:165: element a: validity error : Syntax of value for attribute id of a is not valid html/xmlcmds.html:165: element a: validity error : Syntax of value for attribute name of a is not valid ``` this is due to the change: ``` Commit: 7caef22 [7caef22] Date: Friday, April 5, 2024 3:45:50 PM Problem with colon inserted by `\addindex` ``` Where the `:` was replaced by a `;`, probably the usage of the `;` is an error in xmllint or the dtd as I could not find a reference that the `;` is not allowed. (Looks like the anchor is only used for the internal use in chm / qhp formats etc. and not for external referencing)
1 parent c97f00e commit 2fa7f2a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/htmldocvisitor.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,15 @@ static QCString convertIndexWordToAnchor(const QCString &word)
9393
(c >= 'A' && c <= 'Z') || // ALPHA
9494
(c >= '0' && c <= '9') || // DIGIT
9595
c == '-' ||
96-
c == '.' ||
97-
c == '_'
96+
c == '.'
9897
)
9998
{
10099
result += c;
101100
}
102101
else
103102
{
104103
char enc[4];
105-
enc[0] = ';';
104+
enc[0] = '_';
106105
enc[1] = hex[(c & 0xf0) >> 4];
107106
enc[2] = hex[c & 0xf];
108107
enc[3] = 0;

0 commit comments

Comments
 (0)