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

Unified Diff: pkg/docgen/lib/dart2yaml.dart

Issue 19220006: Updated the schema of the yaml output. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 | pkg/docgen/lib/docgen.dart » ('j') | pkg/docgen/lib/docgen.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/docgen/lib/dart2yaml.dart
diff --git a/pkg/docgen/lib/dart2yaml.dart b/pkg/docgen/lib/dart2yaml.dart
index a481aca4b440377c0238d67aff1785b13a907ac5..56e0ba966a33a84477bd3178bf3d5d483113cd82 100644
--- a/pkg/docgen/lib/dart2yaml.dart
+++ b/pkg/docgen/lib/dart2yaml.dart
@@ -53,7 +53,7 @@ void _addLevel(StringBuffer yaml, Map documentData, int level) {
*/
String _processElement(var element) {
return "\"${element.toString().replaceAll('\\', '\\\\')
- .replaceAll("\"", "\\\"")}\"\n";
+ .replaceAll("\"", "\\\"").replaceAll("\n", "\\n")}\"\n";
Bob Nystrom 2013/07/15 22:16:03 You can make this a little cleaner if you use raw
janicejl 2013/07/15 22:38:43 Done.
}
/**
« no previous file with comments | « no previous file | pkg/docgen/lib/docgen.dart » ('j') | pkg/docgen/lib/docgen.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698