View Single Post
Old 07-16-2010, 06:21 PM   #35
kovidgoyal
Creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 22,473
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If you want to neglect style information in style attibutes, the easiest way is to just stop the parsing of those attributes. Look at the __init__ method in Stylizer that's where all css from the input document is read and parsed.
__________________
Get calibre

Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it.
kovidgoyal is offline   Reply With Quote