Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

makemessages: Allow excluding whitespace before `*inline` custom tag.

Aman Agrawal4b091aafc250
diff --git a/zerver/management/commands/makemessages.py b/zerver/management/commands/makemessages.py
index 1a59dc45fa5..3b9efcd85c9 100644
--- a/zerver/management/commands/makemessages.py
+++ b/zerver/management/commands/makemessages.py
@@ -54,7 +54,7 @@ strip_whitespace_left = re.compile(
)
regexes = [
- r"{{~?#tr}}([\s\S]*?)(?:~?{{/tr}}|{{#\*inline )", # '.' doesn't match '\n' by default
+ r"{{~?#tr}}([\s\S]*?)(?:~?{{/tr}}|{{~?#\*inline )", # '.' doesn't match '\n' by default
r'{{~?\s*t "([\s\S]*?)"\W*~?}}',
r"{{~?\s*t '([\s\S]*?)'\W*~?}}",
r'\(t "([\s\S]*?)"\)',