fix: Space support for halfwidthspaces

This commit is contained in:
Johanna Riedel
2024-12-08 14:40:56 +01:00
parent c46e9163e9
commit d3542de894
3 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ from mistletoe.span_token import SpanToken
class NonbreakingSpaces(SpanToken):
"""
Insert unbreakable space into span token (§ 3)
Identifies "§$number", "Abs.$number", "Klasse [A,E,N]" w/ and w\ space between.
Identifies "§$number", "Abs.$number", "Klasse [A,E,N]" w/ and without space between.
"""
pattern = re.compile(r"(§|Abs\.|Klasse)\s?(\d|[NEA])")