Modify

Opened 5 years ago

Last modified 15 months ago

#5321 new defect

table column width

Reported by: lucashr@… Owned by: airadier
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 (3)

comment:1 Changed 5 years ago by lucashr

anybody knows how to truncate the column width based on its own content?

comment:2 Changed 5 years ago by airadier

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.

Last edited 15 months ago by rjollos (previous) (diff)

comment:3 Changed 5 years ago by airadier

  • Summary changed from table column widht to table column width

Add Comment

Modify Ticket

Action
as new The owner will remain airadier.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.