lint: Ban leading spaces in Handlebars translation tags.

This commit is contained in:
Yago González
2017-06-10 11:56:36 +02:00
committed by Tim Abbott
parent 1ad3671801
commit aa5f57fda9

View File

@@ -395,6 +395,8 @@ def build_custom_checkers(by_lang):
'description': "Period should be part of the translatable string."}, 'description': "Period should be part of the translatable string."},
{'pattern': "{{/tr}}[\.\?!]", {'pattern': "{{/tr}}[\.\?!]",
'description': "Period should be part of the translatable string."}, 'description': "Period should be part of the translatable string."},
{'pattern': '{{t ("|\') ',
'description': 'Translatable strings should not have leading spaces.'},
] ]
jinja2_rules = html_rules + [ jinja2_rules = html_rules + [
{'pattern': "{% endtrans %}[\.\?!]", {'pattern': "{% endtrans %}[\.\?!]",