Modify

Opened 7 years ago

Last modified 5 years ago

#1955 new enhancement

Use WikiFormatting in table cells

Reported by: anonymous Owned by: athomas
Priority: normal Component: CsvMacro
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

It would be nice to be able to use WikiFormatting in the cells of the table. For instance, the following should display the headings in bold and the contents as TracLinks.

{{{
#!CSV
'''Heading1''', '''Heading2'''
PageOne, PageTwo
}}}

Attachments (2)

CsvToTable.2.py (1.2 KB) - added by metafeather 5 years ago.
Enhanced with wikiformatting
CsvToTable.py (1.2 KB) - added by metafeather 5 years ago.
Enhanced with wikiformatting

Download all attachments as: .zip

Change History (3)

comment:1 Changed 5 years ago by metafeather

I've attached a version of the file attached to #2801 that formats any contents of a CSV section using the normal wiki syntax.

This Macro can also now be used just by putting in the plugins dir of a trac env.

Example

{{{
#!CsvToTable
'''header1''',header2,header3
123,#123,[wiki:WikiStart 123]
''32'',{{{32}}}
45,'''21''',12
$,,©
}}}

Changed 5 years ago by metafeather

Enhanced with wikiformatting

Changed 5 years ago by metafeather

Enhanced with wikiformatting

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.