summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 72557bc)
raw | patch | inline | side by side (parent: 72557bc)
author | gmcm <gmcm@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 20 Aug 2002 14:24:19 +0000 (14:24 +0000) | ||
committer | gmcm <gmcm@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 20 Aug 2002 14:24:19 +0000 (14:24 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@979 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/template_parser.py | patch | blob | history |
index ea4a5a4e131daf788fffb46991d32fcadf62c761..e3e8ec424c70575314e57e41699bb8743200fe8c 100644 (file)
self.current.append(data)
def unknown_starttag(self, tag, attributes):
- s = ''
- s = s + '<%s' % tag
+ self.append_data('<%s' % tag)
+ closeit = 1
for name, value in attributes:
- s = s + ' %s="%s"' % (name, value)
- s = s + '>'
- self.append_data(s)
+ pos = value.find('<')
+ if pos > -1:
+ self.append_data(' %s="%s' % (name, value[:pos]))
+ closeit = 0
+ else:
+ self.append_data(' %s="%s"' % (name, value))
+ if closeit:
+ self.append_data('>')
def handle_starttag(self, tag, method, attributes):
if tag in ('require', 'else', 'display', 'property'):