Prevent wrapping file locations containing white space by tomasr8 · Pull Request #1120 · python-babel/babel
Closes #1078
Depends on #1105 (To see only the changes in this PR, look at the last two commits)
Since #1105 wraps file names containing white space in special unicode markers, we look out for them when
wrapping comments.
The fix overrides the _split method of TextWrapper where we manually generate the indivisible chunks, taking into
account enclosed file names.
I test the the wrapping behavior with gettext 0.22.5 (which includes the enclosing logic) to make sure it's consistent