Skip to content
Discussion options

You must be logged in to vote

The problem there is not new lines, but spaces. You are writing spaces past the ned of the line which wrap and push the following line down. That's why you don't see any new lines when you cut and paste them.

render_lines is padding to the full width and your separator segment is adding a few characters. You can tell render_lines to adjust to a smaller space by doing options=options.update_width(options.width - 2). Alternatively you can set pad=False on render_lines so that it doesn't add spaces.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cadojo
Comment options

Answer selected by cadojo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants