Fix trailing whitespace in generated unicde data files

This commit is contained in:
Kovid Goyal 2017-12-20 22:44:20 +05:30
parent d1282b9f55
commit c2ad0607b8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 6 additions and 6 deletions

View File

@ -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()

4
kitty/emoji.h generated
View File

@ -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

2
kitty/wcwidth-std.h generated
View File

@ -2429,7 +2429,7 @@ wcwidth_std(int32_t code) {
default: return 1;
}
return 1;
return 1;
}
END_ALLOW_CASE_RANGE