diff options
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r-- | src/htmlgen.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp index bcc462c..500651b 100644 --- a/src/htmlgen.cpp +++ b/src/htmlgen.cpp @@ -806,11 +806,11 @@ void HtmlGenerator::startDoxyAnchor(const char *,const char *, { t << "<a class=\"anchor\" name=\"" << anchor << "\"></a>"; t << "<!-- doxytag: member=\""; - docify(name); + docify(name,TRUE); t << "\" ref=\""; - docify(anchor); + docify(anchor,TRUE); t << "\" args=\""; - docify(args); + docify(args,TRUE); t << "\" -->"; } @@ -1030,6 +1030,11 @@ void HtmlGenerator::endSection(const char *,SectionInfo::SectionType type) void HtmlGenerator::docify(const char *str) { + docify(str,FALSE); +} + +void HtmlGenerator::docify(const char *str,bool inHtmlComment) +{ if (str) { const char *p=str; @@ -1043,6 +1048,7 @@ void HtmlGenerator::docify(const char *str) case '>': t << ">"; break; case '&': t << "&"; break; case '"': t << """; break; + case '-': if (inHtmlComment) t << "-"; else t << "-"; break; case '\\': if (*p=='<') { t << "<"; p++; } |