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

Make table descriptions line break #2

Open
odscjames opened this issue Jul 20, 2021 · 0 comments
Open

Make table descriptions line break #2

odscjames opened this issue Jul 20, 2021 · 0 comments

Comments

@odscjames
Copy link

In field descriptions textwrap.wrap is used.

So we could also use it in table descriptions?

  table_comment_html = '<BR/>\n'.join( textwrap.wrap(table_comment))

In _graph_add_table - use that when making html_row0 instead.

That does give you multi line and shorter descriptions, but it highlights a problem that the width of the table seems not to fully match to the width of the text inside it. Tweaking width option to the 2 uses of textwrap.wrap changes the width of the table but it's always a bit wrong. Need to look into that more.

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

No branches or pull requests

1 participant