comparison markup/output.py @ 140:c1f4390d50f8 trunk

Fix bug in HTML serializer, plus some other minor tweaks.
author cmlenz
date Wed, 09 Aug 2006 21:00:15 +0000
parents b86f496f6035
children 520a5b7dd6d2
comparison
equal deleted inserted replaced
139:8332287b5508 140:c1f4390d50f8
289 if tagname in empty_elems: 289 if tagname in empty_elems:
290 kind, data, pos = stream.next() 290 kind, data, pos = stream.next()
291 if kind is not END: 291 if kind is not END:
292 stream.pushback((kind, data, pos)) 292 stream.pushback((kind, data, pos))
293 293
294 buf += ['>'] 294 buf += ['>']
295 yield Markup(''.join(buf)) 295 yield Markup(''.join(buf))
296 296
297 elif kind is END: 297 elif kind is END:
298 tag = data 298 tag = data
299 if not tag.namespace or tag in namespace: 299 if not tag.namespace or tag in namespace:
300 yield Markup('</%s>' % tag.localname) 300 yield Markup('</%s>' % tag.localname)
Copyright (C) 2012-2017 Edgewall Software