Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I am using Python 3.7.0 on Mac OS X 10.13.6, with Click 7.0. I make this small script:
Oh… that "1 0 0 [newline] 0" is a little confusing. I think, I will put a newline before "Default is". So my code is now:
Notice the last 0 gets an auto-line-break even though there is plenty of room for it. It is like the wordwrap algorithm is treating \n as a single-width character.
I see #834 suggests in future Click might delete newlines. That's not what I want in this case, but if that were the behavior I would at least understand it. But this looks clearly wrong.
One more weirdness. I look in the documentation and see instructions for preventing rewrapping
Well, I only want a single newline, not a paragraph. But I decide to try this:
But when I run it:
It wrapped sooner! It appears to be treating the \n\b\n as THREE characters.
Turns out the underlying
This isn't exactly what @mcclure asked for, since they wanted to use a single newline, but I don't know if that's possible right now. I can't see a way to distinguish an intentional single line break from the line breaks in an indented