From 36adf08f19b7c6bce53b42a5de577d578bbd0bea Mon Sep 17 00:00:00 2001 From: albert-github Date: Fri, 7 Dec 2018 16:04:59 +0100 Subject: XHTML problem with multiple use of node numbers in id attribute When running xhtml checker on the doxygen diagram example we get: diagrams/html/class_a.html:66: element area: validity error : ID node1 already defined ^ ID node1 already defined Document diagrams/html/class_a.html does not validate This is due to the fact that the map file is used as generated by dot, and here the id values start each time with node1. The id is not used and can be omitted. --- src/dot.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dot.cpp b/src/dot.cpp index dd34411..0d8502d 100644 --- a/src/dot.cpp +++ b/src/dot.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include "dot.h" #include "doxygen.h" @@ -376,6 +377,7 @@ static bool convertMapFile(FTextStream &t,const char *mapName, const QCString &context=QCString()) { QFile f(mapName); + static QRegExp re("id=\"node[0-9]*\""); if (!f.open(IO_ReadOnly)) { err("problems opening map file %s for inclusion in the docs!\n" @@ -394,7 +396,7 @@ static bool convertMapFile(FTextStream &t,const char *mapName, if (buf.left(5)=="