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

Unified Diff: utils/pub/lock_file.dart

Issue 13200003: Minor tweak to the pubspec.lock output to remove the leading whitespace from the file. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 months 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: utils/pub/lock_file.dart
===================================================================
--- utils/pub/lock_file.dart (revision 20623)
+++ utils/pub/lock_file.dart (working copy)
@@ -97,9 +97,10 @@
// TODO(nweiz): Serialize using the YAML library once it supports
// serialization. For now, we use JSON, since it's a subset of YAML anyway.
- return '''
- # Generated by pub. See: http://pub.dartlang.org/doc/glossary.html#lockfile
- ${json.stringify({'packages': packagesObj})}
- ''';
+ return
+ '# Generated by pub\n'
+ '# See http://pub.dartlang.org/doc/glossary.html#lockfile\n'
+ '\n'
+ '${json.stringify({'packages': packagesObj})}\n';
}
}
« 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