Modify

Opened 17 years ago

Last modified 16 years ago

#1955 new enhancement

Use WikiFormatting in table cells

Reported by: anonymous Owned by: Alec Thomas
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 16 years ago.
Enhanced with wikiformatting
CsvToTable.py (1.2 KB) - added by metafeather 16 years ago.
Enhanced with wikiformatting

Download all attachments as: .zip

Change History (3)

comment:1 Changed 16 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 16 years ago by metafeather

Attachment: CsvToTable.2.py added

Enhanced with wikiformatting

Changed 16 years ago by metafeather

Attachment: CsvToTable.py added

Enhanced with wikiformatting

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Alec Thomas.

Add Comment


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

 
Note: See TracTickets for help on using tickets.