Chromium Code Reviews| 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.
|
| } |
| /** |