summaryrefslogtreecommitdiffstats
path: root/src/printdocvisitor.h
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-02-10 19:34:18 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-02-10 19:53:35 (GMT)
commitdfa20277697fe904a0846b60a01cc388fc13c933 (patch)
tree011aa3c33d114404d7508756117e993b90e01799 /src/printdocvisitor.h
parent69665ef2ad0779f9255242929fb6028c8c3ec518 (diff)
downloadDoxygen-dfa20277697fe904a0846b60a01cc388fc13c933.zip
Doxygen-dfa20277697fe904a0846b60a01cc388fc13c933.tar.gz
Doxygen-dfa20277697fe904a0846b60a01cc388fc13c933.tar.bz2
Restructered html entity handling
Diffstat (limited to 'src/printdocvisitor.h')
-rw-r--r--src/printdocvisitor.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/printdocvisitor.h b/src/printdocvisitor.h
index 4610d43..36f86c4 100644
--- a/src/printdocvisitor.h
+++ b/src/printdocvisitor.h
@@ -21,6 +21,7 @@
#include <qglobal.h>
#include "docvisitor.h"
+#include "htmlentity.h"
/*! Concrete visitor implementation for pretty printing */
class PrintDocVisitor : public DocVisitor
@@ -56,14 +57,21 @@ class PrintDocVisitor : public DocVisitor
void visit(DocSymbol *s)
{
indent_leaf();
- const char *res = get_symbol_print(s->symbol());
+ const char *res = HtmlEntityMapper::instance()->utf8(s->symbol());
if (res)
{
- printf("%s",res);
+ if (qstrcmp(res,"%")==0)
+ {
+ printf("%%");
+ }
+ else
+ {
+ printf("%s",res);
+ }
}
else
{
- printf("print: non supported HTML-entity found: &%s;\n",get_symbol_item(s->symbol()));
+ printf("print: non supported HTML-entity found: %s\n",HtmlEntityMapper::instance()->html(s->symbol()));
}
}
void visit(DocURL *u)