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

Unified Diff: tools/html_json_doc/lib/json_to_html.dart

Issue 11792006: Re-generating generated DOM files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/html_json_doc/lib/json_to_html.dart
diff --git a/tools/html_json_doc/lib/json_to_html.dart b/tools/html_json_doc/lib/json_to_html.dart
index 391cd3c1d6d04be7e55d4c64c58f4850d68895ad..aae2b682d849d53d0f8b718db7121c2c46df9e97 100644
--- a/tools/html_json_doc/lib/json_to_html.dart
+++ b/tools/html_json_doc/lib/json_to_html.dart
@@ -140,6 +140,10 @@ void _convertFile(File file, Map<String, List<String>> comments) {
_anyErrors = true;
});
+ for (var i = 0; i < fileLines.length; ++i) {
+ fileLines[i] = fileLines[i].replaceAll(new RegExp(r'\s+$'), '');
+ }
+
// TODO(amouravski): file.writeAsStringSync('${Strings.join(fileLines, '\n')}\n');
var outputStream = file.openOutputStream();
outputStream.writeString(Strings.join(fileLines, '\n'));
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698