Mercurial > genshi > mirror
comparison genshi/template.py @ 369:0d749146842c stable-0.3.x
Ported [444] to 0.3.x.
author | cmlenz |
---|---|
date | Wed, 22 Nov 2006 21:00:43 +0000 |
parents | f738ffe8f1dd |
children | 077fe85dff13 |
comparison
equal
deleted
inserted
replaced
368:94ff33bfe515 | 369:0d749146842c |
---|---|
1138 for test in [mt[0] for mt in match_templates[idx + 1:]]: | 1138 for test in [mt[0] for mt in match_templates[idx + 1:]]: |
1139 test(kind, data, pos, namespaces, ctxt) | 1139 test(kind, data, pos, namespaces, ctxt) |
1140 | 1140 |
1141 # Consume and store all events until an end event | 1141 # Consume and store all events until an end event |
1142 # corresponding to this start event is encountered | 1142 # corresponding to this start event is encountered |
1143 content = chain([(kind, data, pos)], | 1143 content = chain([(kind, data, pos)], |
1144 self._match(_strip(stream), ctxt), | 1144 self._match(_strip(stream), ctxt, |
1145 [match_templates[idx]]), | |
1145 tail) | 1146 tail) |
1146 for filter_ in self.filters[3:]: | 1147 for filter_ in self.filters[3:]: |
1147 content = filter_(content, ctxt) | 1148 content = filter_(content, ctxt) |
1148 content = list(content) | 1149 content = list(content) |
1149 | 1150 |