Ticket #393: genshi-0.6-filter.i18n.2.patch
| File genshi-0.6-filter.i18n.2.patch, 916 bytes (added by Guillaume Pratte <guillaume@…>, 12 years ago) |
|---|
-
genshi/filters/i18n.py
old new 694 694 # handle different events that can be localized 695 695 if kind is START: 696 696 tag, attrs = data 697 if tag .localname in [t.localname for t in self.ignore_tags]or \697 if tag in self.ignore_tags or \ 698 698 isinstance(attrs.get(xml_lang), basestring): 699 699 skip += 1 700 700 yield kind, data, pos … … 821 821 822 822 if kind is START and not skip: 823 823 tag, attrs = data 824 if tag .localname in [t.localname for t in self.ignore_tags]or \824 if tag in self.ignore_tags or \ 825 825 isinstance(attrs.get(xml_lang), basestring): 826 826 skip += 1 827 827 continue
