| Index: pkg/docgen/lib/dart2yaml.dart
|
| diff --git a/pkg/docgen/lib/dart2yaml.dart b/pkg/docgen/lib/dart2yaml.dart
|
| index a481aca4b440377c0238d67aff1785b13a907ac5..cccb8eb084cec52be21ec3ee46de633dbd7f6e61 100644
|
| --- a/pkg/docgen/lib/dart2yaml.dart
|
| +++ b/pkg/docgen/lib/dart2yaml.dart
|
| @@ -52,8 +52,11 @@ void _addLevel(StringBuffer yaml, Map documentData, int level) {
|
| * Returns an escaped String form of the inputted element.
|
| */
|
| String _processElement(var element) {
|
| - return "\"${element.toString().replaceAll('\\', '\\\\')
|
| - .replaceAll("\"", "\\\"")}\"\n";
|
| + var contents = element.toString()
|
| + .replaceAll('\\', r'\\')
|
| + .replaceAll('"', r'\"')
|
| + .replaceAll('\n', r'\n');
|
| + return '"$contents"\n';
|
| }
|
|
|
| /**
|
|
|