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/perlmodgen.cpp | |
parent | 69665ef2ad0779f9255242929fb6028c8c3ec518 (diff) | |
download | Doxygen-dfa20277697fe904a0846b60a01cc388fc13c933.zip Doxygen-dfa20277697fe904a0846b60a01cc388fc13c933.tar.gz Doxygen-dfa20277697fe904a0846b60a01cc388fc13c933.tar.bz2 |
Restructered html entity handling
Diffstat (limited to 'src/perlmodgen.cpp')
-rw-r--r-- | src/perlmodgen.cpp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/perlmodgen.cpp b/src/perlmodgen.cpp index 573400d..46c9146 100644 --- a/src/perlmodgen.cpp +++ b/src/perlmodgen.cpp @@ -42,6 +42,7 @@ #include "membergroup.h" #include "section.h" #include "util.h" +#include "htmlentity.h" #define PERLOUTPUT_MAX_INDENTATION 40 @@ -541,8 +542,8 @@ void PerlModDocVisitor::visit(DocWhiteSpace *) void PerlModDocVisitor::visit(DocSymbol *sy) { - const DocSymbol::PerlSymb *res = get_symbol_perl(sy->symbol()); - const char *accent; + const DocSymbol::PerlSymb *res = HtmlEntityMapper::instance()->perl(sy->symbol()); + const char *accent=0; if (res-> symb) { switch (res->type) @@ -588,19 +589,24 @@ void PerlModDocVisitor::visit(DocSymbol *sy) case DocSymbol::Perl_ring: accent = "ring"; break; + default: + break; } leaveText(); - openItem("accent"); - m_output - .addFieldQuotedString("accent", accent) - .addFieldQuotedChar("letter", res->symb[0]); - closeItem(); + if (accent) + { + openItem("accent"); + m_output + .addFieldQuotedString("accent", accent) + .addFieldQuotedChar("letter", res->symb[0]); + closeItem(); + } break; } } else { - err("perl: non supported HTML-entity found: &%s;\n",get_symbol_item(sy->symbol())); + err("perl: non supported HTML-entity found: %s\n",HtmlEntityMapper::instance()->html(sy->symbol())); } } |