diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-02-10 19:34:18 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-02-10 19:53:35 (GMT) |
commit | dfa20277697fe904a0846b60a01cc388fc13c933 (patch) | |
tree | 011aa3c33d114404d7508756117e993b90e01799 /src/rtfdocvisitor.cpp | |
parent | 69665ef2ad0779f9255242929fb6028c8c3ec518 (diff) | |
download | Doxygen-dfa20277697fe904a0846b60a01cc388fc13c933.zip Doxygen-dfa20277697fe904a0846b60a01cc388fc13c933.tar.gz Doxygen-dfa20277697fe904a0846b60a01cc388fc13c933.tar.bz2 |
Restructered html entity handling
Diffstat (limited to 'src/rtfdocvisitor.cpp')
-rw-r--r-- | src/rtfdocvisitor.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rtfdocvisitor.cpp b/src/rtfdocvisitor.cpp index 5aaa16a..a2d7eef 100644 --- a/src/rtfdocvisitor.cpp +++ b/src/rtfdocvisitor.cpp @@ -32,6 +32,7 @@ #include "dia.h" #include "filedef.h" #include "config.h" +#include "htmlentity.h" //#define DBG_RTF(x) m_t << x #define DBG_RTF(x) do {} while(0) @@ -121,14 +122,14 @@ void RTFDocVisitor::visit(DocSymbol *s) { if (m_hide) return; DBG_RTF("{\\comment RTFDocVisitor::visit(DocSymbol)}\n"); - const char *res = get_symbol_rtf(s->symbol()); + const char *res = HtmlEntityMapper::instance()->rtf(s->symbol()); if (res) { m_t << res; } else { - err("RTF: non supported HTML-entity found: &%s;\n",get_symbol_item(s->symbol())); + err("RTF: non supported HTML-entity found: %s\n",HtmlEntityMapper::instance()->html(s->symbol())); } m_lastIsPara=FALSE; } |