Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix(prompt.py): #2994 #3558

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

paperplane110
Copy link

@paperplane110 paperplane110 commented Nov 11, 2024

Type of changes

  • Bug fix
  • New feature
  • Documentation / docstrings
  • Tests
  • Other

Checklist

  • I've run the latest black with default args on new code.
  • I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate.
  • I've added tests for new code.
  • I accept that @willmcgugan may be pedantic in the code review.

Description

Fix #2994

When using readline and Prompt.ask(), then just pressing enter, prompt won't break line. Questions will all be printed in one line.

So, if readline is imported and user just enter nothing, use print() to break line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] importing readline breaks rich prompt alignement
1 participant