зеркало из https://github.com/mozilla/moz-skia.git
Fix bug in tools/sanitize_source_files.py
Review URL: https://codereview.appspot.com/6474053 git-svn-id: http://skia.googlecode.com/svn/trunk@5253 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
2afb8ec738
Коммит
3de7b21efa
|
@ -116,7 +116,7 @@ def CopywriteChecker(file_content, unused_file_path):
|
|||
|
||||
def EOFNewlineAdder(file_content, file_path):
|
||||
"""Adds a LF at the end of the file if it does not have one."""
|
||||
if file_content and file_content[-1] == '\n':
|
||||
if file_content and file_content[-1] != '\n':
|
||||
file_content += '\n'
|
||||
print 'Added newline to %s' % file_path
|
||||
return file_content
|
||||
|
|
Загрузка…
Ссылка в новой задаче