Mercurial > genshi > genshi-test
comparison markup/template.py @ 210:c0c70dc5bf95
Fix regression introduced in [258]. More fixes needed?
author | cmlenz |
---|---|
date | Tue, 29 Aug 2006 17:35:32 +0000 |
parents | 835203f3b8fd |
children | bafa1cc49c2f |
comparison
equal
deleted
inserted
replaced
209:5b422db07359 | 210:c0c70dc5bf95 |
---|---|
1032 return Stream(content).select(path) | 1032 return Stream(content).select(path) |
1033 ctxt.push(dict(select=select)) | 1033 ctxt.push(dict(select=select)) |
1034 | 1034 |
1035 # Recursively process the output | 1035 # Recursively process the output |
1036 template = _apply_directives(template, ctxt, directives) | 1036 template = _apply_directives(template, ctxt, directives) |
1037 for event in self._match(self._eval(template, ctxt), | 1037 for event in self._match(self._eval(self._flatten(template, |
1038 ctxt, match_templates[:idx] + | 1038 ctxt), |
1039 ctxt), ctxt, | |
1040 match_templates[:idx] + | |
1039 match_templates[idx + 1:]): | 1041 match_templates[idx + 1:]): |
1040 yield event | 1042 yield event |
1041 | 1043 |
1042 ctxt.pop() | 1044 ctxt.pop() |
1043 break | 1045 break |