Test:
var YAML = require('js-yaml');
data = "Exactly 81 symbols in first line. Let's cound finale ones: 9876543210\n test"
console.log(data);
console.log('===============================================================');
data = YAML.safeDump(data);
console.log(data);
console.log('===============================================================');
data = YAML.safeLoad(data);
console.log(data);
console.log('===============================================================');
Output:
$ node test.js
Exactly 81 symbols in first line. Let's cound finale ones: 9876543210
test
===============================================================
>-
Exactly 81 symbols in first line. Let's cound finale
ones: 9876543210
test
===============================================================
Exactly 81 symbols in first line. Let's cound finale ones: 9876543210
test
===============================================================
So lib add extra newline after string with 80+ symbols.
Test:
Output:
So lib add extra newline after string with 80+ symbols.