Skip to content

Fix multiline support for github format #366

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CodeGenerator
Copy link

Issue (#355 (comment))

In the tabulate library, the github format did not properly handle multiline text.
If you passed tabulate data cells containing multiline text and used the maxcolwidths parameter to truncate text, the result was incorrect because the github format was not included in the list of formats that support multiline text processing.

Solution

The issue was that the github format was not added to the multiline_formats dictionary, which defines the formats that support multiline text.
The solution was simple: just add "github": "github" to this dictionary.

After our fix, the github format now correctly processes multiline text, just like other supported formats such as fancy_outline.

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.

1 participant