diff options
Diffstat (limited to 'src/printdocvisitor.h')
-rw-r--r-- | src/printdocvisitor.h | 14 |
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) |