Description
For the message parameter in the menu function using "some string \n some strong" does not actually show the new line portion of the string. At the same time, for strings that are very very long, the string runs off the side of the dialog box.
I tested this in all other options/functions and both newline and wrap works as expected.
Steps to Reproduce
Add \n
to the msg
in menu function or create a very very long string for the menu msg
.
If possible, please include a small, self-contained reproduction.
-->
Single step, see above.
Actual result:
Here are some examples:
Expected result:
New line or wrap of string in box
Reproduces how often:
Easily Reproduced
Version
- Operating System: Mac 12.5.1
- Python: 3.10.6
- whiptail: newt 0.52.21
Installation source
VirtualEnv > Pip
Other Additional Information:
I've found the issue, fixed it locally, and will submit a PR soon. I updated all of the msg
parameters in test.py
, so please let me know if you'd like me to not include those extra long strings and I can resubmit.