tmbo / questionary

Python library to build pretty command line user prompts ✨Easy to use multi-select lists, confirmations, free text prompts ...
MIT License
1.57k stars 90 forks source link

Move new-lines displayed for the `ctrl+c` message to default constant #323

Closed Electro707 closed 10 months ago

Electro707 commented 1 year ago

What is the problem that this PR addresses?

This modules, when the user presses CTRL-C, will print a new-line before and after the message "Cancelled by user ". For some applications, these new-lines might not be desirable.

How did you solve it?

Removed the printing of new-lines when the KBI message is printed, and instead moved the new-lines to the default message, un-effecting default operation.

Checklist

Electro707 commented 10 months ago

I have re-pushed my changes, but I it seems the workflow still needs an approval?