Skip to content

Commit f217b5c

Browse files
committed
issue doxygen#6892 xml not well-formed (invalid token) for c++
the `declname` and `defname` should also be converted (compare as well the routine `generateXMLForMember`)
1 parent 3670a15 commit f217b5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xmlgen.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,8 @@ static void writeTemplateArgumentList(ArgumentList *al,
360360
}
361361
if (!a->name.isEmpty())
362362
{
363-
t << indentStr << " <declname>" << a->name << "</declname>" << endl;
364-
t << indentStr << " <defname>" << a->name << "</defname>" << endl;
363+
t << indentStr << " <declname>" << convertToXML(a->name) << "</declname>" << endl;
364+
t << indentStr << " <defname>" << convertToXML(a->name) << "</defname>" << endl;
365365
}
366366
if (!a->defval.isEmpty())
367367
{

0 commit comments

Comments
 (0)