Fix #7198 (EPUB issue- Incorrect format for language in toc.ncx)

This commit is contained in:
Kovid Goyal 2010-10-17 08:14:12 -06:00
parent 2ac5854714
commit 7020ce507e

View File

@ -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})