# HG changeset patch # User cmlenz # Date 1155679419 0 # Node ID fb71efbd6ad4308ddb63093418d6c04438cc4d15 # Parent d35688d1683185aa56a35f5c36955d90bca0491c The convention for an unknown position is `(None, -1, -1)`. diff --git a/markup/plugin.py b/markup/plugin.py --- a/markup/plugin.py +++ b/markup/plugin.py @@ -27,16 +27,15 @@ tag_name = tag_name[1:] tag_name = QName(tag_name) - yield (Stream.START, (tag_name, element.items()), - ('', 0, 0)) + yield (Stream.START, (tag_name, element.items()), (None, -1, -1)) if element.text: - yield Stream.TEXT, element.text, ('', 0, 0) + yield Stream.TEXT, element.text, (None, -1, -1) for child in element.getchildren(): for item in ET(child): yield item - yield Stream.END, tag_name, ('', 0, 0) + yield Stream.END, tag_name, (None, -1, -1) if element.tail: - yield Stream.TEXT, element.tail, ('', 0, 0) + yield Stream.TEXT, element.tail, (None, -1, -1) class TemplateEnginePlugin(object):