comparison tools/svg2code.py @ 287:5c066380a84e

* Fix tspan inside tspan parsing issue * Fix the compilation issue for the dynamic. However, we need to find why the rules for so does not work.
author wycc
date Sat, 31 Jan 2009 17:24:00 +0800
parents 248a40d51473
children 2e97e8082d83
comparison
equal deleted inserted replaced
286:22d771e1b710 287:5c066380a84e
442 attrs.append(attr) 442 attrs.append(attr)
443 for node in tspan.childNodes: 443 for node in tspan.childNodes:
444 if node.localName == None: 444 if node.localName == None:
445 txt_strs = txt_strs + node.data 445 txt_strs = txt_strs + node.data
446 elif node.localName == 'tspan': 446 elif node.localName == 'tspan':
447 txt_strs = translate_tspan(node,coord_id, codefo, doc,txt_strs,attrs) 447 txt_strs = translate_tspan(node,tspan,coord_id, codefo, doc,txt_strs,attrs)
448 pass 448 pass
449 pass 449 pass
450 attr[1] = len(txt_strs.encode('utf8')) 450 attr[1] = len(txt_strs.encode('utf8'))
451 return txt_strs 451 return txt_strs
452 452