IGN:Mark EPUB output as stable and commit temoprary fix for #1817

This commit is contained in:
Kovid Goyal 2009-02-10 13:38:10 -08:00
parent 1746aeafe0
commit 97a64f159f
2 changed files with 3 additions and 3 deletions

View File

@ -308,8 +308,8 @@ class MobiReader(object):
if 'filepos-id' in attrib: if 'filepos-id' in attrib:
attrib['id'] = attrib.pop('filepos-id') attrib['id'] = attrib.pop('filepos-id')
if 'filepos' in attrib: if 'filepos' in attrib:
filepos = int(attrib.pop('filepos')) filepos = attrib.pop('filepos')
attrib['href'] = "#filepos%d" % filepos attrib['href'] = "#filepos%s" % filepos
if tag.tag == 'img': if tag.tag == 'img':
recindex = None recindex = None
for attr in self.IMAGE_ATTRS: for attr in self.IMAGE_ATTRS:

View File

@ -391,7 +391,7 @@ class Main(MainWindow, Ui_MainWindow):
def change_output_format(self, x): def change_output_format(self, x):
of = unicode(x).strip() of = unicode(x).strip()
if of != prefs['output_format']: if of != prefs['output_format']:
if of not in ('LRF',): if of not in ('LRF', 'EPUB'):
warning_dialog(self, 'Warning', warning_dialog(self, 'Warning',
'<p>%s support is still in beta. If you find bugs, please report them by opening a <a href="http://calibre.kovidgoyal.net">ticket</a>.'%of).exec_() '<p>%s support is still in beta. If you find bugs, please report them by opening a <a href="http://calibre.kovidgoyal.net">ticket</a>.'%of).exec_()
prefs.set('output_format', of) prefs.set('output_format', of)