diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2008-09-14 19:14:55 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2008-09-14 19:14:55 (GMT) |
commit | ec8cd7293a58213bac5967a3a3ccc7dc55ba19fe (patch) | |
tree | 7c2a1d6f7f4f4a314acdd54d620ac8a75519e369 /src/htmlgen.cpp | |
parent | 1b605218ded157b8c128418fb86b0e53c8c3d452 (diff) | |
download | Doxygen-ec8cd7293a58213bac5967a3a3ccc7dc55ba19fe.zip Doxygen-ec8cd7293a58213bac5967a3a3ccc7dc55ba19fe.tar.gz Doxygen-ec8cd7293a58213bac5967a3a3ccc7dc55ba19fe.tar.bz2 |
Release-1.5.6-20080914
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++; } |