Skip to content

Commit

Permalink
fixup! Allow multiline input
Browse files Browse the repository at this point in the history
  • Loading branch information
Jairo Llopis committed Sep 18, 2020
1 parent c55af90 commit 78bcd76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions copier/config/user_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def ask_interactively(
message += f"{bold | question}? Format: {type_name}\n{emoji} "
lexer_map = {"json": JsonLexer, "yaml": YamlLexer}
lexer = lexer_map.get(type_name)
# HACK https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1071
# FIXME When fixed, use prompt toolkit too for choices and bools
# Use the correct method to ask
if type_name == "bool":
return ask(message, default)
Expand Down

0 comments on commit 78bcd76

Please sign in to comment.