From bd828c560287a252676d5469e5bb10709f138244 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 21 Dec 2011 12:19:14 +0530 Subject: [PATCH] MOBI Output: Fix regression in 0.8.30 that caused the use of hidden heading elements for the TOC to generate links in the wrong place. Fixes #907156 (Private bug) --- src/calibre/ebooks/mobi/mobiml.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/ebooks/mobi/mobiml.py b/src/calibre/ebooks/mobi/mobiml.py index 38d4cdde06..479afa3d06 100644 --- a/src/calibre/ebooks/mobi/mobiml.py +++ b/src/calibre/ebooks/mobi/mobiml.py @@ -325,6 +325,7 @@ class MobiMLizer(object): elem.text = None elem.set('id', id_) elem.tail = tail + elem.tag = XHTML('a') else: return tag = barename(elem.tag)