Mercurial > genshi > mirror
diff markup/template.py @ 38:ee669cb9cccc trunk
Fix for #2 (incorrect context node in path expressions). Still some paths that produce incorrect results, but the common case seems to work now.
author | cmlenz |
---|---|
date | Mon, 03 Jul 2006 11:28:13 +0000 |
parents | 37557b8fb925 |
children | 436e30c8420b |
line wrap: on
line diff
--- a/markup/template.py +++ b/markup/template.py @@ -417,7 +417,8 @@ def __call__(self, stream, ctxt): self.stream = list(stream) - ctxt._match_templates.append((self.path.test(), self.path, self.stream)) + ctxt._match_templates.append((self.path.test(ignore_context=True), + self.path, self.stream)) return [] def __repr__(self):