fix: only match tag blocks when spanning multiple lines

This commit is contained in:
Tim Grelka
2025-08-29 00:30:55 +02:00
parent a59edbc0a4
commit 0e90ba7f60
+1 -1
View File
@@ -30,7 +30,7 @@ captures = [
class Tag(BlockToken):
@staticmethod
def start(line):
return re.match(r"^\s*<(" + "|".join(captures) + r")+>", line)
return re.match(r"^\s*<(" + "|".join(captures) + r")+>$", line)
@classmethod
def read(cls, lines):