-
Notifications
You must be signed in to change notification settings - Fork 105
Open
Labels
BugSomething isn't workingSomething isn't working
Description
Describe the bug
When using the newline character \n in the question's message, then a long message does not get wrapped according to the terminal width anymore. In my case, we add a trailing newline character to the message to always receive the answer in the next line.
This is a screenshot of the unwrapped message:
The behavior has been verified on Linux (Ubuntu 22.04, GNU bash 5.1.16) and macOS.
Example
import questionary
questionary.text(message="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua\n.").ask()Steps to reproduce
No response
Expected behaviour
Line wrap should work despite newline characters \n in the message.
Latest version
- I have checked that this issue occurs on the latest version of questionary.
Questionary version
2.0.1
Prompt Toolkit version
3.0.36
Operating System
Linux
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't working
