diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2010-02-08 20:59:33 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2010-02-08 20:59:33 (GMT) |
commit | f22ba481afa686d1a834e056963f8d41621aba88 (patch) | |
tree | 267387c59c5c0c6c4623d616f7102d54600dfba9 /src/perlmodgen.cpp | |
parent | 3eb607c72338237e65fc44562b153db7ce4e0ac9 (diff) | |
download | Doxygen-f22ba481afa686d1a834e056963f8d41621aba88.zip Doxygen-f22ba481afa686d1a834e056963f8d41621aba88.tar.gz Doxygen-f22ba481afa686d1a834e056963f8d41621aba88.tar.bz2 |
Release-1.6.2-20100208
Diffstat (limited to 'src/perlmodgen.cpp')
-rw-r--r-- | src/perlmodgen.cpp | 89 |
1 files changed, 49 insertions, 40 deletions
diff --git a/src/perlmodgen.cpp b/src/perlmodgen.cpp index ce306bf..417cbf3 100644 --- a/src/perlmodgen.cpp +++ b/src/perlmodgen.cpp @@ -534,53 +534,59 @@ void PerlModDocVisitor::visit(DocSymbol *sy) const char *symbol = 0; switch(sy->symbol()) { - case DocSymbol::At: c = '@'; break; - case DocSymbol::Less: c = '<'; break; - case DocSymbol::Greater: c = '>'; break; - case DocSymbol::Amp: c = '&'; break; - case DocSymbol::Dollar: c = '$'; break; - case DocSymbol::Hash: c = '#'; break; - case DocSymbol::Percent: c = '%'; break; - case DocSymbol::Quot: c = '"'; break; - case DocSymbol::Lsquo: s = "\\\'"; break; - case DocSymbol::Rsquo: s = "\\\'"; break; - case DocSymbol::Ldquo: c = '"'; break; - case DocSymbol::Rdquo: c = '"'; break; - case DocSymbol::Ndash: c = '-'; break; - case DocSymbol::Mdash: s = "--"; break; - case DocSymbol::Nbsp: c = ' '; break; - case DocSymbol::Uml: accent = "umlaut"; break; - case DocSymbol::Acute: accent = "acute"; break; - case DocSymbol::Grave: accent = "grave"; break; - case DocSymbol::Circ: accent = "circ"; break; - case DocSymbol::Slash: accent = "slash"; break; - case DocSymbol::Tilde: accent = "tilde"; break; - case DocSymbol::Cedil: accent = "cedilla"; break; - case DocSymbol::Ring: accent = "ring"; break; - case DocSymbol::BSlash: s = "\\\\"; break; - case DocSymbol::Copy: symbol = "copyright"; break; - case DocSymbol::Tm: symbol = "trademark"; break; - case DocSymbol::Reg: symbol = "registered"; break; - case DocSymbol::Szlig: symbol = "szlig"; break; - case DocSymbol::Apos: s = "\\\'"; break; - case DocSymbol::Aelig: symbol = "aelig"; break; - case DocSymbol::AElig: symbol = "AElig"; break; - case DocSymbol::Unknown: - err("Error: unknown symbol found\n"); - break; - } - if (c != 0) { + case DocSymbol::At: c = '@'; break; + case DocSymbol::Less: c = '<'; break; + case DocSymbol::Greater: c = '>'; break; + case DocSymbol::Amp: c = '&'; break; + case DocSymbol::Dollar: c = '$'; break; + case DocSymbol::Hash: c = '#'; break; + case DocSymbol::Percent: c = '%'; break; + case DocSymbol::Quot: c = '"'; break; + case DocSymbol::Lsquo: s = "\\\'"; break; + case DocSymbol::Rsquo: s = "\\\'"; break; + case DocSymbol::Ldquo: c = '"'; break; + case DocSymbol::Rdquo: c = '"'; break; + case DocSymbol::Ndash: c = '-'; break; + case DocSymbol::Mdash: s = "--"; break; + case DocSymbol::Nbsp: c = ' '; break; + case DocSymbol::Uml: accent = "umlaut"; break; + case DocSymbol::Acute: accent = "acute"; break; + case DocSymbol::Grave: accent = "grave"; break; + case DocSymbol::Circ: accent = "circ"; break; + case DocSymbol::Slash: accent = "slash"; break; + case DocSymbol::Tilde: accent = "tilde"; break; + case DocSymbol::Cedil: accent = "cedilla"; break; + case DocSymbol::Ring: accent = "ring"; break; + case DocSymbol::BSlash: s = "\\\\"; break; + case DocSymbol::Copy: symbol = "copyright"; break; + case DocSymbol::Tm: symbol = "trademark"; break; + case DocSymbol::Reg: symbol = "registered"; break; + case DocSymbol::Szlig: symbol = "szlig"; break; + case DocSymbol::Apos: s = "\\\'"; break; + case DocSymbol::Aelig: symbol = "aelig"; break; + case DocSymbol::AElig: symbol = "AElig"; break; + case DocSymbol::Unknown: err("Error: unknown symbol found\n"); + break; + } + if (c != 0) + { enterText(); m_output.add(c); - } else if (s != 0) { + } + else if (s != 0) + { enterText(); m_output.add(s); - } else if (symbol != 0) { + } + else if (symbol != 0) + { leaveText(); openItem("symbol"); m_output.addFieldQuotedString("symbol", symbol); closeItem(); - } else if (accent != 0) { + } + else if (accent != 0) + { leaveText(); openItem("accent"); m_output @@ -805,7 +811,7 @@ void PerlModDocVisitor::visitPre(DocSimpleSect *s) case DocSimpleSect::Version: type = "version"; break; case DocSimpleSect::Since: type = "since"; break; case DocSimpleSect::Date: type = "date"; break; - case DocSimpleSect::Note: type = "bug"; break; + case DocSimpleSect::Note: type = "note"; break; case DocSimpleSect::Warning: type = "warning"; break; case DocSimpleSect::Pre: type = "pre"; break; case DocSimpleSect::Post: type = "post"; break; @@ -818,6 +824,8 @@ void PerlModDocVisitor::visitPre(DocSimpleSect *s) err("Error: unknown simple section found\n"); break; } + leaveText(); + m_output.openHash(); openOther(); openSubBlock(type); } @@ -826,6 +834,7 @@ void PerlModDocVisitor::visitPost(DocSimpleSect *) { closeSubBlock(); closeOther(); + m_output.closeHash(); } void PerlModDocVisitor::visitPre(DocTitle *) |