Skip to content

wide character support in multi-line item - #58

Merged
astanin merged 1 commit into
astanin:masterfrom
chrd5273:multiline_full_width
Feb 17, 2021
Merged

astanin merged 1 commit into
astanin:masterfrom
chrd5273:multiline_full_width

Conversation

@chrd5273

@chrd5273 chrd5273 commented May 22, 2020 •

Copy link
Copy Markdown

Current version(0.8.8) breaks when each line of multi-line item contains different number of full-width character. For example,

import tabulate

l1 = [
    ["가나\n가ab", "가나", "가나"]
]
l2 = [
    ["가나\n가나", "가나", "가나"]
]
print(tabulate.tabulate(l1, tablefmt="fancy_grid"))
print(tabulate.tabulate(l2, tablefmt="fancy_grid"))

results in
multi
single

This pull request fixes this behavior.

@astanin
astanin merged commit 9890da9 into astanin:master Feb 17, 2021
@astanin

astanin commented Feb 17, 2021

Copy link
Copy Markdown
Owner

Thank you for this submission. Sorry it took me so long to merge it.

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 this pull request may close these issues.

2 participants