From c2ad0607b8ab2cc254997b7b337e20c0ce1068d2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 20 Dec 2017 22:44:20 +0530 Subject: [PATCH] Fix trailing whitespace in generated unicde data files --- gen-wcwidth.py | 6 +++--- kitty/emoji.h | 4 ++-- kitty/wcwidth-std.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gen-wcwidth.py b/gen-wcwidth.py index 0115685cd..f5b7c7e01 100755 --- a/gen-wcwidth.py +++ b/gen-wcwidth.py @@ -150,7 +150,7 @@ def gen_emoji(): p('\t\t\treturn true;') p('\t\tdefault: return false;') p('\t}') - p('\treturn false; \n}') + p('\treturn false;\n}') p('static inline bool\nis_emoji_modifier(char_type code) {') p('\tswitch(code) {') for spec in get_ranges(list(emoji_categories['Emoji_Modifier'])): @@ -158,7 +158,7 @@ def gen_emoji(): p('\t\t\treturn true;') p('\t\tdefault: return false;') p('\t}') - p('\treturn false; \n}') + p('\treturn false;\n}') def gen_wcwidth(): @@ -189,7 +189,7 @@ def gen_wcwidth(): p('\t\tdefault: return 1;') p('\t}') - p('\treturn 1; \n}') + p('\treturn 1;\n}') parse_ucd() diff --git a/kitty/emoji.h b/kitty/emoji.h index f4dedb837..4fb61a929 100644 --- a/kitty/emoji.h +++ b/kitty/emoji.h @@ -282,7 +282,7 @@ is_emoji(char_type code) { return true; default: return false; } - return false; + return false; } static inline bool is_emoji_modifier(char_type code) { @@ -291,7 +291,7 @@ is_emoji_modifier(char_type code) { return true; default: return false; } - return false; + return false; } END_ALLOW_CASE_RANGE diff --git a/kitty/wcwidth-std.h b/kitty/wcwidth-std.h index f59bdc170..caa688a28 100644 --- a/kitty/wcwidth-std.h +++ b/kitty/wcwidth-std.h @@ -2429,7 +2429,7 @@ wcwidth_std(int32_t code) { default: return 1; } - return 1; + return 1; } END_ALLOW_CASE_RANGE