From 71de3aead9fffe89556e80ebc94aa918d8ee7bca Mon Sep 17 00:00:00 2001 From: Mike FABIAN Date: Thu, 14 Sep 2023 19:18:00 +0200 Subject: localedata/unicode-gen/utf8_gen.py: adapt regexp to get relevant lines from EastAsianWidth.txt Reviewed-by: Carlos O'Donell --- localedata/unicode-gen/utf8_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localedata/unicode-gen/utf8_gen.py b/localedata/unicode-gen/utf8_gen.py index b48dc2aaa4..117c5a9652 100755 --- a/localedata/unicode-gen/utf8_gen.py +++ b/localedata/unicode-gen/utf8_gen.py @@ -350,7 +350,7 @@ if __name__ == "__main__": # the EastAsianWidth.txt file. if re.match(r'.*\.\..*', LINE): continue - if re.match(r'^[^;]*;[WF]', LINE): + if re.match(r'^[^;]*;\s*[WF]\s*', LINE): EAST_ASIAN_WIDTH_LINES.append(LINE.strip()) with open(ARGS.prop_list_file, mode='r') as PROP_LIST_FILE: PROP_LIST_LINES = [] -- cgit 1.4.1