Skip to content

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.

@astanin astanin merged commit 3cfb20c into astanin:master Jul 23, 2025
1 check failed
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