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 Aug 19, 2020
1 parent feba1a1 commit b609c95
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 @@ -68,6 +68,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 b609c95

Please sign in to comment.