summaryrefslogtreecommitdiffstats
path: root/src/mandocvisitor.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2018-12-23 19:08:19 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2018-12-23 19:08:19 (GMT)
commitc3ee766d0ad5721c753581e7f87026614c0730e1 (patch)
tree7fa6ad9bbb5c3fcd8938bec8fea9b1b0a36e397f /src/mandocvisitor.cpp
parent200353a0886f5ee20101b7af4b55af498adc495f (diff)
downloadDoxygen-c3ee766d0ad5721c753581e7f87026614c0730e1.zip
Doxygen-c3ee766d0ad5721c753581e7f87026614c0730e1.tar.gz
Doxygen-c3ee766d0ad5721c753581e7f87026614c0730e1.tar.bz2
Improved robustness of the emoji feature
Changes: - Use of `@emoji name` instead of `:name:` - Support only GitHub emojis (i.e. without spaces or special characters in the name) - Provided script to download images for LaTeX support. - XML output now has <emoji> tag with name an unicode sequence.
Diffstat (limited to 'src/mandocvisitor.cpp')
-rw-r--r--src/mandocvisitor.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mandocvisitor.cpp b/src/mandocvisitor.cpp
index f60f06b..beef632 100644
--- a/src/mandocvisitor.cpp
+++ b/src/mandocvisitor.cpp
@@ -93,15 +93,14 @@ void ManDocVisitor::visit(DocSymbol *s)
void ManDocVisitor::visit(DocEmoji *s)
{
if (m_hide) return;
- const char *res = EmojiEntityMapper::instance()->man(s->emoji());
+ const char *res = EmojiEntityMapper::instance()->name(s->index());
if (res)
{
m_t << res;
}
else
{
- // no error or warning to be supplied
- // err("man: non supported HTML-entity found: &%s;\n",get_symbol_item(s->emoji()));
+ m_t << s->name();
}
m_firstCol=FALSE;
}