Opened 15 years ago
Last modified 5 years ago
#5321 new defect
table column width
Reported by: | Lucas | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | TracWikiPrintPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
how can i format my tables with the "table-layout: automatic" format? for example: in a 3-column table, instead to have a fixed 33% width for each column, i want to automatic width associated on the content cell. If I have in the first column the code number (# 1, 2, 3, ...), in the second a name, and in the 3th the description (long), my printed table becomes ugly and big. I already tried to use the css formating, without success... thanks
Attachments (0)
Change History (4)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
I think the xhtml2pdf library doesn't support that. Take a look at the manual:
pisa-en.pdf:wiki:TracWikiPrintPlugin
There's something about cell widths in page 18:
Tables are supported but may behave a little different to the way you might expect them to do. These restriction are due to the underlying table mechanism of ReportLab.
and:
The table renderer is not able to adjust the width of the table automatically. herefore you should explicitly set the width of the table and to the table rows or cells.
comment:3 Changed 15 years ago by
Summary: | table column widht → table column width |
---|
comment:4 Changed 5 years ago by
Owner: | Álvaro Iradier deleted |
---|
anybody knows how to truncate the column width based on its own content?