Somehow I've figured out a patch. It's similar to fontifyText(in
fontconfig.py), but I've changed the regex because the slash brokes
html tags of font styles.
In rlwriter.py, in buildPara I've changed:
_txt = ' '.join(txtList)
with:
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)
Now it works :)
--
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.