From ea637081dd5e77f4ec77fca513a4a0e75e358ca1 Mon Sep 17 00:00:00 2001 From: Aditya Deshpande Date: Mon, 30 Jan 2023 13:10:13 +0000 Subject: [PATCH 1/3] Allow specific Box Drawing UTF characters that are used in Markdown trees in check_files.py Signed-off-by: Aditya Deshpande --- tests/scripts/check_files.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/scripts/check_files.py b/tests/scripts/check_files.py index d20ec2e9e..33b15ac17 100755 --- a/tests/scripts/check_files.py +++ b/tests/scripts/check_files.py @@ -285,6 +285,7 @@ class UnicodeIssueTracker(LineIssueTracker): '\u2070\u2071\u2074-\u208E\u2090-\u209C', # Superscripts and Subscripts '\u2190-\u21FF', # Arrows '\u2200-\u22FF', # Mathematical Symbols + '\u2500 \u2514 \u251C' # Box Drawings characters used in markdown trees ]) # Allow any of the characters and ranges above, and anything classified # as a word constituent. From 15b6dd0fb4b6e8c96d4a7b7a6a30029e663dfc42 Mon Sep 17 00:00:00 2001 From: Aditya Deshpande Date: Mon, 30 Jan 2023 13:46:58 +0000 Subject: [PATCH 2/3] Modify comments to make them more inclusive Signed-off-by: Aditya Deshpande --- tests/scripts/check_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/scripts/check_files.py b/tests/scripts/check_files.py index 33b15ac17..fa7b8c067 100755 --- a/tests/scripts/check_files.py +++ b/tests/scripts/check_files.py @@ -268,7 +268,7 @@ class UnicodeIssueTracker(LineIssueTracker): heading = "Invalid UTF-8 or forbidden character:" - # Only allow valid UTF-8, and only white-listed characters. + # Only allow valid UTF-8, and only other explicitly allowed characters. # We deliberately exclude all characters that aren't a simple non-blank, # non-zero-width glyph, apart from a very small set (tab, ordinary space, # line breaks, "basic" no-break space and soft hyphen). In particular, From ebb2269f6854f3c0011b2f9d182f49b036bf12cc Mon Sep 17 00:00:00 2001 From: Aditya Deshpande Date: Wed, 1 Feb 2023 13:30:26 +0000 Subject: [PATCH 3/3] Allow whole Box Drawings range Signed-off-by: Aditya Deshpande --- tests/scripts/check_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/scripts/check_files.py b/tests/scripts/check_files.py index fa7b8c067..352b55eaa 100755 --- a/tests/scripts/check_files.py +++ b/tests/scripts/check_files.py @@ -285,7 +285,7 @@ class UnicodeIssueTracker(LineIssueTracker): '\u2070\u2071\u2074-\u208E\u2090-\u209C', # Superscripts and Subscripts '\u2190-\u21FF', # Arrows '\u2200-\u22FF', # Mathematical Symbols - '\u2500 \u2514 \u251C' # Box Drawings characters used in markdown trees + '\u2500-\u257F' # Box Drawings characters used in markdown trees ]) # Allow any of the characters and ranges above, and anything classified # as a word constituent.