Skip to content

wide character support in multi-line item #58

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

Merged
merged 1 commit into from
Feb 17, 2021

Conversation

chrd5273
Copy link

@chrd5273 chrd5273 commented May 22, 2020

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
Copy link
Owner

astanin commented Feb 17, 2021

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