summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-02-23 00:50:45 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2023-02-23 00:50:45 +0100
commitd27e42dec6b6255246bd488e12ea2662018f12ab (patch)
tree71eefa8a5fef32671331d4b295e2c350808fab6a /scripts
parentFix typo in tag (diff)
downloadnheko-d27e42dec6b6255246bd488e12ea2662018f12ab.tar.xz
Hotfix redundant null terminator inserted by emoji completer
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/emoji_codegen.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/emoji_codegen.py b/scripts/emoji_codegen.py
index 2de09fdb..53c3d2e8 100755
--- a/scripts/emoji_codegen.py
+++ b/scripts/emoji_codegen.py
@@ -19,7 +19,7 @@ constexpr const std::array<Emoji, {{ entrycount }} > emoji::Provider::emoji = {
     {%- for c in kwargs.items() %}
     // {{ c[0].capitalize() }}
     {%- for e in c[1] %}
-    Emoji{null_literal(u"{{ e.code }}"), null_literal(u"{{ e.shortname }}"), null_literal(u"{{ e.unicodename }}"), emoji::Emoji::Category::{{ c[0].capitalize() }}},
+    Emoji{std::u16string_view(u"{{ e.code }}"), std::u16string_view(u"{{ e.shortname }}"), std::u16string_view(u"{{ e.unicodename }}"), emoji::Emoji::Category::{{ c[0].capitalize() }}},
     {%- endfor %}
     {%- endfor %}
 };
@@ -55,9 +55,9 @@ if __name__ == '__main__':
         'Flags': flags,
         'Component': symbols
     }
-    shortcodeDict = {} 
+    shortcodeDict = {}
     # for my sanity - this strips newlines
-    for line in open(shortcodefilename, 'r', encoding="utf8"): 
+    for line in open(shortcodefilename, 'r', encoding="utf8"):
         longname, shortname = line.strip().split(':')
         shortcodeDict[longname] = shortname
     current_category = ''