Merge #15510: clarify textwrap's handling of whitespace, and add confirming tests.

Patch by Chris Jerdonek.