Ticket #4139 (closed defect: fixed)
Formatter argument for macros
| Reported by: | jpereira@… | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11 |
| Component: | wiki system | Version: | 0.10.1 |
| Severity: | normal | Keywords: | macros |
| Cc: |
Description
Hi,
We've ran into a problem, where inside a macro provider we must know what kind of formatter has been used. More specifically, this occured when using the WikiTemplate? plugin, it has to return unformatted wiki text for the OutlineFormatter?, or formatted text for a Formatter.
In Trac's source, I found TODO comments, stating that you intend to pass the formatter to the macro renderer. One could easily pass an extra argument to the WikiProcessor constructor, but it seems like from there to the macro renderer, you'd have to break the API by adding an extra argument (or alternatively, adding an extra property to one of the objects passed into the function, like req).
We really don't want to break compatibility with your code, so what's your plan on this situation? Would there be any interest in an extra pair of hands working on this?
Thanks in advance, - Jorge Pereira


