Modify ↓
Opened 11 years ago
Last modified 6 years ago
#11921 new defect
Footnote numbers are duplicated in Trac 1.0.1 ticket preview
| Reported by: | Chris Nelson | Owned by: | |
|---|---|---|---|
| Priority: | low | Component: | FootNoteMacro |
| Severity: | normal | Keywords: | preview |
| Cc: | Trac Release: | 1.0 |
Description
If you put one or more footnotes ([[FootNote(some text)]]) and the macro invocation to *display* the footnotes ([[FootNote()]]) in a ticket comment, while you work, the footnotes show up in the preview as
---- 1. 1. some text
but once you've submitted it, it shows up as
---- 1. some text
so, the macro has some weird interaction with the new preview feature. For all I know, if you clicked <<Preview>> in 0.11 it did the same thing.
Attachments (0)
Change History (2)
comment:1 Changed 11 years ago by
comment:2 Changed 6 years ago by
| Owner: | Ryan J Ollos deleted |
|---|
Note: See
TracTickets for help on using
tickets.



The issue is due to the same mechanism that causes an ugly rendering of a
#!diff, the first time that a diff is added to the page and prior to an explicit Preview. It is discussed in trac:#10470.The
footnotes.cssstylesheet has a rulelist-style: none, but there is no mechanism to addfootnotes.cssto the page during autopreview. The stylesheet is added to theRequeston macro invocation, but the stylesheet doesn't get added to the page. The stylesheet is added to the page during an explicit Preview, so this is a Trac >= 1.0 issue only.One inelegant workaround is:
footnotemacro/macro.py