Anton Vredegoor wrote: > Serge Orlov wrote: > > > Anton Vredegoor wrote: > >> In fact there are a lot of printable things that haven't got a text > >> attribute, for example some items with tag (xxxx)s. > > > > In my sample file I see <text:s text:c="2"/>, is that you're talking > > about? Since my file is small I can say for sure this tag represents > > two space characters. > > Or for example in firefox: > > <text:s/> > in Amsterdam > <text:s/> > > So, probably yes. If it doesn't have a text attribrute if you iterate > over it using OOopy for example: > > o = OOoPy (infile = fname) > c = o.read ('content.xml') > for x in c.getiterator(): > if x.text: > > Then we know for sure you have recreated my other problem.
I'm tweaking a small test file and see that <text:s/> is one space character <text:s text:c="2"/> is two space characters <text:s text:c="3"/> is three space characters -- http://mail.python.org/mailman/listinfo/python-list