summaryrefslogtreecommitdiffstats
path: root/src/htmlgen.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-09-14 19:14:55 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-09-14 19:14:55 (GMT)
commit9e34481c1a67ca9ffb6a83f9723f23f6cf3982c7 (patch)
tree7c2a1d6f7f4f4a314acdd54d620ac8a75519e369 /src/htmlgen.cpp
parent093ac41f561578b904905e466df307131cd80893 (diff)
downloadDoxygen-9e34481c1a67ca9ffb6a83f9723f23f6cf3982c7.zip
Doxygen-9e34481c1a67ca9ffb6a83f9723f23f6cf3982c7.tar.gz
Doxygen-9e34481c1a67ca9ffb6a83f9723f23f6cf3982c7.tar.bz2
Release-1.5.6-20080914
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r--src/htmlgen.cpp12
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 << "&gt;"; break;
case '&': t << "&amp;"; break;
case '"': t << "&quot;"; break;
+ case '-': if (inHtmlComment) t << "&#45;"; else t << "-"; break;
case '\\':
if (*p=='<')
{ t << "&lt;"; p++; }