commit | 3de7b21efa63d118f5a66ca158533e8013300d62 | [log] [tgz] |
---|---|---|
author | rmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Aug 23 14:46:18 2012 +0000 |
committer | rmistry@google.com <rmistry@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Aug 23 14:46:18 2012 +0000 |
tree | a26e9ee0ea3ffeee4de34f79373b440b85400b7a | |
parent | 2afb8ec738fc50ea6e4500545c3cacbf346ed187 [diff] |
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
diff --git a/tools/sanitize_source_files.py b/tools/sanitize_source_files.py index 26998e2..d6e3ec6 100755 --- a/tools/sanitize_source_files.py +++ b/tools/sanitize_source_files.py
@@ -116,7 +116,7 @@ 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