add test for formatting commands

This commit is contained in:
interfisch 2024-10-08 14:43:13 +02:00
parent 77b6947eda
commit 1de8202040
2 changed files with 6 additions and 1 deletions

5
tools/format_test.txt Normal file
View File

@ -0,0 +1,5 @@
Nor
\uUnderline\u\u
\bBold\b
\k\k\k\k\k\k mal
\j\j\j\j

View File

@ -47,7 +47,7 @@ def main():
lines=[x.rstrip() for x in lines] # remove whitespaces and linebreaks
for iline,line in enumerate(lines):
if not set(line).issubset(chars):
if not set(line).issubset(chars+'\\'):
print(str(iline)+":"+str(line))
print("Contains non printable characters")
exit()