Closed saifelse closed 8 months ago
Thanks, could you add a changelog file too?
See https://github.com/sqlalchemy/alembic/tree/3452979f0d1fcd42f0a8311642f6ee4e70d6f95c/docs/build/unreleased for examples
New Gerrit review created for change 3ce8e83c725373a7a73ca933ca13b98dbad63b8f: https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/5082
Patchset ff59fa59861487cee1943090acc970d9a64f7e96 added to existing Gerrit review https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/5082
Thanks, could you add a changelog file too?
See https://github.com/sqlalchemy/alembic/tree/3452979f0d1fcd42f0a8311642f6ee4e70d6f95c/docs/build/unreleased for examples
Done!
Michael Bayer (zzzeek) wrote:
thank you!
View this in Gerrit at https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/5082
Gerrit review https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/5082 has been merged. Congratulations! :)
Description
Instead of applying indent manually after using textwrap, simply use the
textwrap.wrap
'sinitial_indent
/subsequent_indent
so that it is accounted for when wrapping towidth
.Otherwise, each line will actually exceed the terminal width by two characters, since we were prepending two spaces.
Fixes: #1384
Manual Testing
Running the repro in #1384 now produces the expected output:
Output:
🎉
Checklist
This pull request is:
Fixes: #<issue number>
in the commit messageFixes: #<issue number>
in the commit messageHave a nice day!