Edgewall Software
Modify

Opened 10 years ago

Last modified 4 years ago

#11963 new defect

#!td processor inserts unwanted <p>...</p>

Reported by: bastiK Owned by:
Priority: normal Milestone: next-major-releases
Component: wiki system Version: 1.0.4
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Jun Omae)

The table using the html processors has additional padding due to <p> elements that get inserted automatically.

{{{#!th
some
}}}
{{{#!td
example
}}}

some

example

In a long table, this vertical margin wastes too much space. I would prefer the compact style from the pipe syntax, but need to add css styling.

Attachments (0)

Change History (4)

comment:1 by Jun Omae, 10 years ago

Description: modified (diff)

comment:2 by Jun Omae, 10 years ago

Description: modified (diff)

No. #!td and #!th processors allow and intend to write multiple paragraphs, lists and any Trac wiki in a table cell.

It would be better to add the following styles.

table.wiki th > :first-child, table.wiki td > :first-child { margin-top: 0 }
table.wiki th > :last-child, table.wiki td > :last-child { margin-bottom: 0 }

comment:3 by bastiK, 10 years ago

Okay, that works.

comment:4 by Ryan J Ollos, 4 years ago

Milestone: next-major-releases

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.