Closed ljcui closed 4 months ago
Per the note in this section of the README:
NOTE: Whether word-wrapping is automatic or not, tabulate performs a trim operation on each line of each cell to remove whitespace characters from either side of line.
tabulate
performs a trim operation. This is why the indentation disappears. This is by design.
Per the note in this section of the README:
NOTE: Whether word-wrapping is automatic or not, tabulate performs a trim operation on each line of each cell to remove whitespace characters from either side of line.
tabulate
performs a trim operation. This is why the indentation disappears. This is by design.
I don't think this is a correct design because it modifies the original string content. I found this PR:https://github.com/p-ranav/tabulate/pull/109, this is I need. Expect a new release that includes this pr.
Yes, I will create a new release soon.
The code is
The output is
Why indented strings disappear ?