diff markup/template.py @ 38:fec9f4897415

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 224b0b41d1da
children 42bcb91bf025
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):
Copyright (C) 2012-2017 Edgewall Software