Message242279
The totsstring(..., method='text') is not suitable for the inner text because it adds the tail of the top element.
A proper implementation would be
def innertext(elt):
return (elt.text or '') +''.join(innertext(e)+e.tail for e in elt)
that can be included in the doc instead of the mention of the to string trick |
|
Date |
User |
Action |
Args |
2015-04-30 17:56:16 | jlaurens | set | recipients:
+ jlaurens, rhettinger, scoder, ned.deily, eli.bendersky, docs@python |
2015-04-30 17:56:16 | jlaurens | set | messageid: <1430416576.79.0.147338541378.issue24079@psf.upfronthosting.co.za> |
2015-04-30 17:56:16 | jlaurens | link | issue24079 messages |
2015-04-30 17:56:16 | jlaurens | create | |
|