diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-02-11 20:22:28 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-02-11 20:22:28 (GMT) |
commit | 0e080f486f67008ef427c834f6ab6ebca7578124 (patch) | |
tree | d817896b59922824cf9503fee329c26b7fa3cacd /src/printdocvisitor.h | |
parent | a28ff2331d8e228d901cd6f0b038f76e1cee630a (diff) | |
download | Doxygen-0e080f486f67008ef427c834f6ab6ebca7578124.zip Doxygen-0e080f486f67008ef427c834f6ab6ebca7578124.tar.gz Doxygen-0e080f486f67008ef427c834f6ab6ebca7578124.tar.bz2 |
Improved handling of percent symbol
Diffstat (limited to 'src/printdocvisitor.h')
-rw-r--r-- | src/printdocvisitor.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/printdocvisitor.h b/src/printdocvisitor.h index 7a077e9..ee4104e 100644 --- a/src/printdocvisitor.h +++ b/src/printdocvisitor.h @@ -57,21 +57,14 @@ class PrintDocVisitor : public DocVisitor void visit(DocSymbol *s) { indent_leaf(); - const char *res = HtmlEntityMapper::instance()->utf8(s->symbol()); + const char *res = HtmlEntityMapper::instance()->utf8(s->symbol(),TRUE); if (res) { - if (qstrcmp(res,"%")==0) - { - printf("%%"); - } - else - { - printf("%s",res); - } + printf("%s",res); } else { - printf("print: non supported HTML-entity found: %s\n",HtmlEntityMapper::instance()->html(s->symbol())); + printf("print: non supported HTML-entity found: %s\n",HtmlEntityMapper::instance()->html(s->symbol(),TRUE)); } } void visit(DocURL *u) |