From 902a50c7114623e4581e1ff920aaac2c44cdb69f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 5 Aug 2011 14:35:58 -0600 Subject: [PATCH] Fix #821635 (rtf to mobi coversion regression in 0.8.13) --- src/calibre/ebooks/mobi/writer.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/calibre/ebooks/mobi/writer.py b/src/calibre/ebooks/mobi/writer.py index 90747d0a73..40e9eeedd0 100644 --- a/src/calibre/ebooks/mobi/writer.py +++ b/src/calibre/ebooks/mobi/writer.py @@ -1710,7 +1710,6 @@ class MobiWriter(object): ''' from calibre.ebooks.oeb.base import TOC items = list(self._oeb.toc.iterdescendants()) - items = [i for i in items if i.depth == 1] offsets = {i:self._id_offsets.get(i.href, -1) for i in items if i.href} items = [i for i in items if offsets[i] > -1] items.sort(key=lambda i:offsets[i])