mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
template-processor: dont fail/ignore {{ \n
This commit is contained in:
@@ -269,9 +269,9 @@ class TemplateRenderer:
|
||||
"""Replace all tags in template text."""
|
||||
self._error_count = 0
|
||||
|
||||
# Pattern matches {{ ... }} with any content inside
|
||||
# Pattern matches {{ ... }} with any content inside (single line only)
|
||||
# We'll parse the content ourselves for better error reporting
|
||||
pattern = r"\{\{\s*([^}]+?)\s*\}\}"
|
||||
pattern = r"\{\{\s*([^}\n]+?)\s*\}\}"
|
||||
|
||||
def replace(match):
|
||||
expr = match.group(1).strip()
|
||||
|
||||
Reference in New Issue
Block a user