From a6c5c1e04f9cbbb7dcf03a39885a411c770586cf Mon Sep 17 00:00:00 2001 From: Yaniv Hasbani Date: Mon, 30 Aug 2021 13:45:02 +0300 Subject: [PATCH] prompts: bugfix: prompt_for_input breaking input prompt_for_input breaks long input strings incorrectly due to a bug in python's input functions. --- humanfriendly/prompts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/humanfriendly/prompts.py b/humanfriendly/prompts.py index 4a9d023..8781a3e 100644 --- a/humanfriendly/prompts.py +++ b/humanfriendly/prompts.py @@ -267,7 +267,8 @@ def prompt_for_input(question, default=None, padding=True, strip=True): question = question.replace('\n', '\n ') # Render the prompt and wait for the user's reply. try: - reply = interactive_prompt(question) + print(question) + reply = interactive_prompt('') finally: if reply is None: # If the user terminated the prompt using Control-C or