From d4eb343fa62a32ca04d8e6d71e87108ba876d9af Mon Sep 17 00:00:00 2001 From: Greenscreener Date: Sun, 20 Aug 2023 00:32:41 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20#29,=20commands=20sm=C3=AD=20nic=20nevr?= =?UTF-8?q?=C3=A1tit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/formatitko/transform_processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/formatitko/transform_processor.py b/src/formatitko/transform_processor.py index 2256aa4..a7c51ba 100644 --- a/src/formatitko/transform_processor.py +++ b/src/formatitko/transform_processor.py @@ -477,7 +477,7 @@ class TransformProcessor: if not self.context.get_command(e.attributes["c"]): raise NameError(f"Command not defined '{e.attributes['c']}'.") command_output = self.context.get_command(e.attributes["c"])(e, self.context) - e = e.replaceSelf(*command_output) + e = e.replaceSelf(*([] if command_output is None else command_output)) return self.transform(e) def transform_InlineCommand(self, e: InlineCommand) -> Span: