Modify

Opened 10 years ago

Closed 10 years ago

#11846 closed enhancement (fixed)

Add configurable tag type

Reported by: Tobias Hommel Owned by: Peter Suter
Priority: normal Component: FoldMacroProcessorMacro
Severity: normal Keywords:
Cc: Trac Release:

Description

Great macro, simple but effective! One thing I didn't like though was the use of the <h1> tag. I modified FoldMacro.py so it can be used as follows:

{{{
#!Fold title="some nice title" tag="span"
some text to be folded
}}}

I attached a patch.

Attachments (1)

foldmacro.patch (701 bytes) - added by Tobias Hommel 10 years ago.
patch to add configurable tag type

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by Tobias Hommel

Attachment: foldmacro.patch added

patch to add configurable tag type

comment:1 Changed 10 years ago by Peter Suter

Resolution: fixed
Status: newclosed

In 13999:

FoldMacroProcessorMacro: Add macro parameter tag to switch the title's HTML tag type.
Thanks to Tobias Hommel.
(fix #11846)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Peter Suter.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.