From 889a302661db7eba47b70a4a61827a5971dbe75e Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 10 Dec 2018 15:43:57 +0100 Subject: XHTML problem with name attribute with VHDL name attribute When running xhtml checker on the doxygen diagram example we get: Syntax of value for attribute name of a is not valid Document mux/xhtml/classmux__using__with.xhtml does not validate This is due to a space in the name tag, substituting the appropriate code solves the problem. As this is a VHDL specific problem only these strings are converted. --- src/classdef.cpp | 2 +- src/vhdldocgen.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/classdef.cpp b/src/classdef.cpp index 77d9e05..c9e6dbb 100644 --- a/src/classdef.cpp +++ b/src/classdef.cpp @@ -1737,7 +1737,7 @@ void ClassDef::writeSummaryLinks(OutputList &ol) SDict::Iterator li(m_impl->vhdlSummaryTitles); for (li.toFirst();li.current();++li) { - ol.writeSummaryLink(0,li.current()->data(),li.current()->data(),first); + ol.writeSummaryLink(0,convertToId(li.current()->data()),li.current()->data(),first); first=FALSE; } } diff --git a/src/vhdldocgen.cpp b/src/vhdldocgen.cpp index 7700295..b18bd3f 100644 --- a/src/vhdldocgen.cpp +++ b/src/vhdldocgen.cpp @@ -2329,7 +2329,7 @@ void VhdlDocGen::writeVHDLDeclarations(MemberList* ml,OutputList &ol, if (title) { - ol.startMemberHeader(title,type == VhdlDocGen::PORT ? 3 : 2); + ol.startMemberHeader(convertToId(title),type == VhdlDocGen::PORT ? 3 : 2); ol.parseText(title); ol.endMemberHeader(); ol.docify(" "); -- cgit v0.12