mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 19:43:54 +02:00
Fix Zeit Online
This commit is contained in:
parent
2c652bdee7
commit
032890d06f
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ def preprocess_html(self, soup):
|
|||
for tag in soup.findAll(name=['ul','li']):
|
||||
tag.name = 'div'
|
||||
|
||||
soup.html['xml:lang'] = self.lang
|
||||
soup.html['xml:lang'] = self.language.replace('_', '-')
|
||||
soup.html['lang'] = self.lang
|
||||
mtag = '<meta http-equiv="Content-Type" content="text/html; charset=' + self.encoding + '">'
|
||||
soup.head.insert(0,mtag)
|
||||
|
|
|
|||
Loading…
Reference in a new issue