mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
EPUB Output: Replace <center> tags with <div> tags since <center> is not valid XHTML
This commit is contained in:
parent
64b017d12c
commit
68644d2562
@ -200,6 +200,10 @@ class HTMLProcessor(Processor, Rationalizer):
|
|||||||
for tag in self.root.xpath('//form'):
|
for tag in self.root.xpath('//form'):
|
||||||
tag.getparent().remove(tag)
|
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:
|
if self.opts.linearize_tables:
|
||||||
for tag in self.root.xpath('//table | //tr | //th | //td'):
|
for tag in self.root.xpath('//table | //tr | //th | //td'):
|
||||||
tag.tag = 'div'
|
tag.tag = 'div'
|
||||||
|
4
todo
4
todo
@ -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.
|
* 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
|
* 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user