From aa2bfa967ec9d86b767557a845f00fb48c7c5c36 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Mon, 22 Apr 2024 17:52:15 +0200 Subject: [PATCH] style fixes --- src/ui/bigtext/testline.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/bigtext/testline.py b/src/ui/bigtext/testline.py index d76949b..111c0ee 100644 --- a/src/ui/bigtext/testline.py +++ b/src/ui/bigtext/testline.py @@ -31,9 +31,9 @@ class MyTestCase(unittest.TestCase): self.assertEqual(9, line.column_to_char(15)) # tab self.assertEqual(10, line.column_to_char(16)) # g - def test_column_to_char_ignore_nonspacing_mark_charaters(self): + def test_column_to_char_ignore_nonspacing_mark_characters(self): """ - nonspacing mark charaters are those little decorations that are applied to the previous character, + nonspacing mark characters are those little decorations that are applied to the previous character, e.g. x\u0308 to make ẍ :return: """ @@ -63,7 +63,7 @@ class MyTestCase(unittest.TestCase): def test_char_to_column_ignore_nonspacing_mark_charaters(self): """ - nonspacing mark charaters are those little decorations that are applied to the previous character, + nonspacing mark characters are those little decorations that are applied to the previous character, e.g. x\u0308 to make ẍ :return: """ @@ -119,7 +119,7 @@ class MyTestCase(unittest.TestCase): for i in range(128): if unicodedata.category(chr(i)) == "Cc": # print(i, " -> ", ord(chr(i)), " --> ", chr(9216 + i)) - if not i in [9, 10, 11, 13]: + if i not in [9, 10, 11, 13]: text = text + chr(i) line = Line(byte_offset=byte_offset, byte_end=byte_offset + len(text.encode("utf8")), line=text)