EPUB Output: Replace <center> tags with <div> tags since <center> is not valid XHTML

This commit is contained in:
Kovid Goyal 2009-03-17 00:41:39 -07:00
parent 64b017d12c
commit 68644d2562
2 changed files with 8 additions and 0 deletions

View File

@ -199,6 +199,10 @@ class HTMLProcessor(Processor, Rationalizer):
for tag in self.root.xpath('//form'):
tag.getparent().remove(tag)
for tag in self.root.xpath('//center'):
tag.tag = 'div'
tag.set('style', 'text-align:center')
if self.opts.linearize_tables:
for tag in self.root.xpath('//table | //tr | //th | //td'):

4
todo
View File

@ -8,3 +8,7 @@
* Rationalize books table. Add a pubdate column, remove the uri column (and associated support in add_books) and convert series_index to a float.
* Replace single application stuff with Listener from multiprocessing
* Refactor add books to use a separate process named calibre-worker-add
- Dont use the process for adding a single book
- Use a process pool for speed