Mercurial > genshi > mirror
changeset 151:fb71efbd6ad4 trunk
The convention for an unknown position is `(None, -1, -1)`.
author | cmlenz |
---|---|
date | Tue, 15 Aug 2006 22:03:39 +0000 |
parents | d35688d16831 |
children | cdb2a1f930e2 |
files | markup/plugin.py |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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()), - ('<string>', 0, 0)) + yield (Stream.START, (tag_name, element.items()), (None, -1, -1)) if element.text: - yield Stream.TEXT, element.text, ('<string>', 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, ('<string>', 0, 0) + yield Stream.END, tag_name, (None, -1, -1) if element.tail: - yield Stream.TEXT, element.tail, ('<string>', 0, 0) + yield Stream.TEXT, element.tail, (None, -1, -1) class TemplateEnginePlugin(object):