Than Ngo e0716d
From f217b5c36b39a294b920437ff66055ee1a3fa5b7 Mon Sep 17 00:00:00 2001
Than Ngo e0716d
From: albert-github <albert.tests@gmail.com>
Than Ngo e0716d
Date: Tue, 19 Mar 2019 10:42:24 +0100
Than Ngo e0716d
Subject: [PATCH] issue #6892 xml not well-formed (invalid token) for c++
Than Ngo e0716d
Than Ngo e0716d
the `declname` and `defname` should  also be converted (compare as well the routine `generateXMLForMember`)
Than Ngo e0716d
---
Than Ngo e0716d
 src/xmlgen.cpp | 4 ++--
Than Ngo e0716d
 1 file changed, 2 insertions(+), 2 deletions(-)
Than Ngo e0716d
Than Ngo e0716d
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp
Than Ngo e0716d
index 420a653fc..568e48886 100644
Than Ngo e0716d
--- a/src/xmlgen.cpp
Than Ngo e0716d
+++ b/src/xmlgen.cpp
Than Ngo e0716d
@@ -360,8 +360,8 @@ static void writeTemplateArgumentList(ArgumentList *al,
Than Ngo e0716d
       }
Than Ngo e0716d
       if (!a->name.isEmpty())
Than Ngo e0716d
       {
Than Ngo e0716d
-        t << indentStr <<  "    <declname>" << a->name << "</declname>" << endl;
Than Ngo e0716d
-        t << indentStr <<  "    <defname>" << a->name << "</defname>" << endl;
Than Ngo e0716d
+        t << indentStr <<  "    <declname>" << convertToXML(a->name) << "</declname>" << endl;
Than Ngo e0716d
+        t << indentStr <<  "    <defname>" << convertToXML(a->name) << "</defname>" << endl;
Than Ngo e0716d
       }
Than Ngo e0716d
       if (!a->defval.isEmpty())
Than Ngo e0716d
       {