Skip to content

Commit a4f9148

Browse files
Merge pull request #6983 from aditya-deshpande-arm/backport-check-files-characters
[Backport 2.28] check_files.py: Allow specific Box Drawings characters to be used
2 parents fc9cb13 + a9186f3 commit a4f9148

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/scripts/check_files.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ class UnicodeIssueTracker(LineIssueTracker):
268268

269269
heading = "Invalid UTF-8 or forbidden character:"
270270

271-
# Only allow valid UTF-8, and only white-listed characters.
271+
# Only allow valid UTF-8, and only other explicitly allowed characters.
272272
# We deliberately exclude all characters that aren't a simple non-blank,
273273
# non-zero-width glyph, apart from a very small set (tab, ordinary space,
274274
# line breaks, "basic" no-break space and soft hyphen). In particular,
@@ -285,6 +285,7 @@ class UnicodeIssueTracker(LineIssueTracker):
285285
'\u2070\u2071\u2074-\u208E\u2090-\u209C', # Superscripts and Subscripts
286286
'\u2190-\u21FF', # Arrows
287287
'\u2200-\u22FF', # Mathematical Symbols
288+
'\u2500-\u257F' # Box Drawings characters used in markdown trees
288289
])
289290
# Allow any of the characters and ranges above, and anything classified
290291
# as a word constituent.

0 commit comments

Comments
 (0)