mirror of https://github.com/zulip/zulip.git
makemessages: Allow excluding whitespace before `*inline` custom tag.
This otherwise throws capitalization error that handlebars are included in the translated string when trying to use {{~#*inline}}.
This commit is contained in:
parent
8bc873c18f
commit
4b091aafc2
|
@ -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]*?)"\)',
|
||||
|
|
Loading…
Reference in New Issue