MacroList should only display one help entry when there are multiple macros defined that differ only by case
|Reported by:||Ryan Ollos <ryano@…>||Owned by:||cboos|
As an example, the th:wiki:EmailProcessorMacro allows #Email and #email. This results in two entries in the list of macros generated by MacroList, [[email]] and [[Email]]. I briefly discussed this with the author in th:5713 (screen capture is shown there).
With my limited knowledge of Trac, I believe this is due to the two entries in get_macros.
def get_macros(self): """Yield the name of the macro based on the class name.""" yield 'email' yield 'Email'
Would it be reasonable to alter MacroList so that only one help entry is displayed? Perhaps the header can show [[Email]] or [[email]] followed by the help entry.
Change History (8)
comment:1 Changed 4 years ago by Ryan Ollos <ryano@…>
- Summary changed from MacroList should be case insensitive to MacroList should only display one help entry when there are multiple macros defined that differ only by case
comment:6 in reply to: ↑ 5 Changed 4 years ago by cboos
- Component changed from general to wiki system
- Resolution set to fixed
- Status changed from new to closed