From 0e90ba7f609769bc40b9052c893de94431e2bc38 Mon Sep 17 00:00:00 2001 From: Tim Grelka Date: Fri, 29 Aug 2025 00:30:55 +0200 Subject: [PATCH] fix: only match tag blocks when spanning multiple lines --- renderer/tag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer/tag.py b/renderer/tag.py index 803385d..f53acf5 100644 --- a/renderer/tag.py +++ b/renderer/tag.py @@ -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):