Closed saifelse closed 8 months ago
Hi,
Thanks for reporting and for the PR!
Saif Hakim has proposed a fix for this issue in the main branch:
fix alembic.util.messaging.msg to properly wrap at terminal width https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/5082
Describe the bug When alembic prints longs messages to stdout, it attempts to wrap messages at the terminal width. However, it wraps 2 characters wider than the message.
Expected behavior Messages should properly wrap at the width of the terminal.
To Reproduce In a fairly narrow terminal window (e.g. 64 columns wide), run:
Output:
Expected:
Versions.
Additional context Fun fact: this bug was introduced all the way back in d4fea1d2e9c19a9b8da4a415c6d303b58e7360c9! The message is wrapped at the terminal width, but then two spaces are prepended to every line.
Have a nice day!