Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a SEPARATING_LINE fails, for any format with padding #246

Open
pjkundert opened this issue Feb 4, 2023 · 0 comments · May be fixed by #279
Open

Adding a SEPARATING_LINE fails, for any format with padding #246

pjkundert opened this issue Feb 4, 2023 · 0 comments · May be fixed by #279

Comments

@pjkundert
Copy link

If a format with padding is used, the test for SEPARATING_LINE fails, resulting in a table containing an (unprintable) \x01 character instead of a separating line.

This is because the padding is applied before the test for SEPARATING_LINE. The row now contains " \x01 ", instead of "\x01", so the test fails.

However, since multi-line cells are post-padded, the test succeeds, and a separating line is added!

So, instead of pre-padding the rows, always pad them immediately before output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant