From 4131aa18da11ee9d6ddbc6b7312b662e5db16f4d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 20 Aug 2012 23:24:31 +0530 Subject: [PATCH] No longer explicitly set the color of links to blue. This was needed for old versions of ADE which did not display links correctly without it. Since newer versions of ADE no longer have this problem, remove the workaround. --- resources/templates/html.css | 4 ---- src/calibre/ebooks/mobi/writer2/serializer.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/resources/templates/html.css b/resources/templates/html.css index 79c80583bf..a8b3ab920c 100644 --- a/resources/templates/html.css +++ b/resources/templates/html.css @@ -402,7 +402,3 @@ img, object, svg|svg { height: auto; } -/* These are needed because ADE renders anchors the same as links */ - -a { text-decoration: inherit; color: inherit; cursor: inherit } -a[href] { text-decoration: underline; color: blue; cursor: pointer } diff --git a/src/calibre/ebooks/mobi/writer2/serializer.py b/src/calibre/ebooks/mobi/writer2/serializer.py index 2b38c1e6a6..d3269b2d5e 100644 --- a/src/calibre/ebooks/mobi/writer2/serializer.py +++ b/src/calibre/ebooks/mobi/writer2/serializer.py @@ -235,7 +235,7 @@ class Serializer(object): itemhref = re.sub(r'article_\d+/', '', itemhref) self.href_offsets[itemhref].append(buf.tell()) buf.write('0000000000') - buf.write(' >') + buf.write(' >') t = tocitem.title if isinstance(t, unicode): t = t.encode('utf-8')