This commit is contained in:
Kovid Goyal 2011-09-23 13:48:17 -06:00
parent 403eec1609
commit 1b79589034

View File

@ -368,7 +368,7 @@ class MobiMLizer(object):
istate.strikethrough = style['text-decoration'] == 'line-through' istate.strikethrough = style['text-decoration'] == 'line-through'
istate.underline = style['text-decoration'] == 'underline' istate.underline = style['text-decoration'] == 'underline'
ff = style['font-family'].lower() if style['font-family'] else '' ff = style['font-family'].lower() if style['font-family'] else ''
if 'monospace' in ff or 'courier' in ff: if 'monospace' in ff or 'courier' in ff or ff.endswith(' mono'):
istate.family = 'monospace' istate.family = 'monospace'
elif ('sans-serif' in ff or 'sansserif' in ff or 'verdana' in ff or elif ('sans-serif' in ff or 'sansserif' in ff or 'verdana' in ff or
'arial' in ff or 'helvetica' in ff): 'arial' in ff or 'helvetica' in ff):