Use correct syntax for emoji generation script

pull/419/head
Loren Burkholder 4 years ago
parent a5cd283423
commit 61cc4cc37d
  1. 2
      scripts/emoji_codegen.py
  2. 7616
      src/emoji/Provider.cpp

@ -17,7 +17,7 @@ const QVector<Emoji> emoji::Provider::emoji = {
{%- for c in kwargs.items() %}
// {{ c[0].capitalize() }}
{%- for e in c[1] %}
Emoji{QString::fromUtf8("{{ e.code }}"), "{{ e.shortname }}", emoji::EmojiCategory::{{ c[0].capitalize() }}},
Emoji{QString::fromUtf8("{{ e.code }}"), "{{ e.shortname }}", emoji::Emoji::Category::{{ c[0].capitalize() }}},
{%- endfor %}
{%- endfor %}
};

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save