Oops, I've pasted the wrong regex :P. The working code is
newelem = []
for elem in txtList:
if style != 'box' or style != 'source' or style !=
'preformatted':
elem = re.sub(re.compile('([^<]/[^>]|\+|-|_|\?)(\S)'),
'\g<1>%s
\g<2>' % '<font fontSize="1"> </font>' , elem)
newelem.append(elem)
_txt = ' '.join(newelem)
# fine modifiche
_txt = _txt.strip()
~ Fabrizio
--
You received this message because you are subscribed to the Google Groups
"mwlib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/mwlib?hl=en.