Formatted replies to wrap and have a hanging indent #89
No reviewers
Labels
No Label
bug
compatibility
documentation
duplicate
enhancement
future release
help wanted
invalid
non-code
question
refactor
testing
this release
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cmccabe/linkulator2#89
Loading…
Reference in New Issue
No description provided.
Delete Branch "wrap_replies"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #87 (first go around)
This PR is to introduce simple word wrapping to replies. It gets the current terminal width, then wraps replies to that width with a hanging indent. Here's an example:
Wrapping does not support escape characters that we use for formatting text. As a result, the username is no longer in bold. It's possible this could be addressed at a later date.
Doing this highlights some other areas for improvement, but want to keep some momentum. So, no tests for this, however I have tested against python 3.8 and found no issues.
Looks good! Thanks for taking this one on :)