mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #7198 (EPUB issue- Incorrect format for language in toc.ncx)
This commit is contained in:
parent
2ac5854714
commit
7020ce507e
@ -1908,6 +1908,7 @@ class OEBBook(object):
|
||||
|
||||
def _to_ncx(self):
|
||||
lang = unicode(self.metadata.language[0])
|
||||
lang = lang.replace('_', '-')
|
||||
ncx = etree.Element(NCX('ncx'),
|
||||
attrib={'version': '2005-1', XML('lang'): lang},
|
||||
nsmap={None: NCX_NS})
|
||||
|
Loading…
x
Reference in New Issue
Block a user