Open
Description
I ran this code in NodeJS console using npm version "^1.2.3"
var wrap = require('word-wrap');
var test = '1234 12345678';
var arguments = {width: 10, indent: ' ', newline: ' \n'};
var result = wrap(test, arguments);
result
In the following I will use '-' to represent a space.
I expected result to output -1234-\n-12345678
however the output of result was -1234--\n12345678
.
Can someone explain why result has more and less spaces than I expected or confirm that this is a bug.
Thanks.
Metadata
Assignees
Labels
No labels