Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: tools/boilerplate.py

Issue 2570193003: Make boilerplate.py add newline to end of generated files. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/boilerplate.py
diff --git a/tools/boilerplate.py b/tools/boilerplate.py
index b26493e710f27f5d804950ab0ab241e737d6f73b..ada43a0863cf28ece323682c203ffdd6a26a9c98 100755
--- a/tools/boilerplate.py
+++ b/tools/boilerplate.py
@@ -61,13 +61,11 @@ def _RemoveTestSuffix(filename):
return base
def _CppImplementation(filename):
- include = '#include "' + _RemoveTestSuffix(filename) + '.h"'
- return '\n'.join(['', include])
+ return '\n#include "' + _RemoveTestSuffix(filename) + '.h"\n'
def _ObjCppImplementation(filename):
- include = '#import "' + _RemoveTestSuffix(filename) + '.h"'
- return '\n'.join(['', include])
+ return '\n#import "' + _RemoveTestSuffix(filename) + '.h"\n'
def _CreateFile(filename):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698