Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

Utf8::wordwrap and strings with new lines #18

Closed
matlouis opened this issue Mar 25, 2014 · 0 comments
Closed

Utf8::wordwrap and strings with new lines #18

matlouis opened this issue Mar 25, 2014 · 0 comments

Comments

@matlouis
Copy link

Utf8::wordwrap doesn't work correctly when the input string contains new lines:

$str = "string\nwith\nnew\nlines";
echo \Patchwork\Utf8::wordwrap($str);

should output the string unchanged (like php's wordwrap), but it outputs:

string
stringwith
stringwithnew
stringwithnewlines
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant