We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaee0e3 commit 638ac19Copy full SHA for 638ac19
test/issues/0682.js
@@ -0,0 +1,12 @@
1
+'use strict';
2
+
3
+const assert = require('assert');
4
+const fs = require('fs');
5
+const yaml = require('../..');
6
7
8
+it('Should serialize strings with tabs as blocks', function () {
9
+ const expected = fs.readFileSync(require('path').join(__dirname, '/0682.yml'), 'utf8');
10
+ const result = yaml.dump({ value: 'a\n\tb' });
11
+ assert.strictEqual(expected, result);
12
+});
test/issues/0682.yml
@@ -0,0 +1,3 @@
+value: |-
+ a
+ b
0 commit comments