summaryrefslogtreecommitdiffstats
path: root/src/perlmodgen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/perlmodgen.cpp')
-rw-r--r--src/perlmodgen.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/perlmodgen.cpp b/src/perlmodgen.cpp
index 044efff..fcc7ef5 100644
--- a/src/perlmodgen.cpp
+++ b/src/perlmodgen.cpp
@@ -614,7 +614,15 @@ void PerlModDocVisitor::visit(DocSymbol *sy)
void PerlModDocVisitor::visit(DocEmoji *sy)
{
enterText();
- m_output.add(EmojiEntityMapper::instance()->perl(sy->emoji()));
+ const char *name = EmojiEntityMapper::instance()->name(sy->index());
+ if (name)
+ {
+ m_output.add(name);
+ }
+ else
+ {
+ m_output.add(sy->name());
+ }
}
void PerlModDocVisitor::visit(DocURL *u)