equal
deleted
inserted
replaced
413 if websubtable: |
413 if websubtable: |
414 for regexp, format in websubtable: |
414 for regexp, format in websubtable: |
415 text = regexp.sub(format, text) |
415 text = regexp.sub(format, text) |
416 return text |
416 return text |
417 |
417 |
|
418 def loadfilter(ui, extname, registrarobj): |
|
419 """Load template filter from specified registrarobj |
|
420 """ |
|
421 for name, func in registrarobj._table.iteritems(): |
|
422 filters[name] = func |
|
423 |
418 # tell hggettext to extract docstrings from these functions: |
424 # tell hggettext to extract docstrings from these functions: |
419 i18nfunctions = filters.values() |
425 i18nfunctions = filters.values() |