Skip to content

Commit

Permalink
Ignore begin/end newlines for Android
Browse files Browse the repository at this point in the history
These are non significant whitespaces there as well.

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jan 16, 2015
1 parent fb4edda commit f1136dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion weblate/trans/formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,12 @@ class AndroidFormat(FileFormat):
loader = ('aresource', 'AndroidResourceFile')
monolingual = True
# Whitespace is ignored in this format
check_flags = ('ignore-begin-space', 'ignore-end-space')
check_flags = (
'ignore-begin-space',
'ignore-end-space',
'ignore-begin-newline',
'ignore-end-newline',
)

@classmethod
def supports_new_language(cls):
Expand Down

0 comments on commit f1136dc

Please sign in to comment.