Am 02.01.2010 08:43, schrieb Georg Brandl: > Am 02.01.2010 06:15, schrieb Jacob Kaplan-Moss: >> On Fri, Jan 1, 2010 at 5:12 PM, Georg Brandl <g.bra...@gmx.net> wrote: >>> For the next Sphinx release (1.0), I have added an extension to do >>> exactly this, named "extlinks". See this page for usage info: >>> http://sphinx.pocoo.org/latest/ext/extlinks.html >> >> What would you think of changing the link expansions to a *pattern* >> instead of a *prefix*? >> >> Currently, if I want to use extlinks with links of the form >> ``http://example.com/ticket/1234/raw/`` them I'm out of luck. I'd be >> easy enough to make the expansion a pattern, either using ``%s`` >> formatting:: >> >> extlinks = {'issue': ('http://exmaple.com/ticket/%s/raw/', 'issue ')} >> >> or new-style bracket formatting:: >> >> extlinks = {'issue': ('http://exmaple.com/ticket/{0}/raw/', 'issue ')} >> >> Thoughts? > > Makes sense. I'll change that. >
Now in trunk as revision b1b653a6f05d. Georg
signature.asc
Description: OpenPGP digital signature