diff --git a/Changelog.yaml b/Changelog.yaml index 6602651092..c9ece5cfbc 100644 --- a/Changelog.yaml +++ b/Changelog.yaml @@ -67,6 +67,9 @@ - title: "Fix bug in OEBWriter that could cause writing out of resources in subdirectories with URL unsafe names to fail" + - title: "E-book viewer: Change highlight color to yellow on all platforms." + tickets: [4641] + new recipes: - title: Frankfurter Rundschau author: Justus Bisser diff --git a/resources/catalog/stylesheet.css b/resources/catalog/stylesheet.css index 07d13cab3b..056c2f5ee8 100644 --- a/resources/catalog/stylesheet.css +++ b/resources/catalog/stylesheet.css @@ -4,7 +4,7 @@ p.title { text-align:center; font-style:italic; font-size:xx-large; - height:0px; + border-bottom: solid black 4px; } p.author { diff --git a/src/calibre/library/catalog.py b/src/calibre/library/catalog.py index b62d1a0f29..f60ca4a106 100644 --- a/src/calibre/library/catalog.py +++ b/src/calibre/library/catalog.py @@ -2279,6 +2279,8 @@ class EPUB_MOBI(CatalogPlugin): ''' else: + title_border = '' if self.opts.fmt == 'epub' else \ + '

' header = ''' @@ -2289,7 +2291,7 @@ class EPUB_MOBI(CatalogPlugin):

-

+ {0}

 

@@ -2329,7 +2331,7 @@ class EPUB_MOBI(CatalogPlugin): - ''' + '''.format(title_border) # Insert the supplied title soup = BeautifulSoup(header, selfClosingTags=['mbp:pagebreak']) @@ -2517,6 +2519,7 @@ class EPUB_MOBI(CatalogPlugin): def run(self, path_to_output, opts, db, notification=DummyReporter()): from calibre.utils.logging import Log + self.opts = opts log = Log() opts.fmt = self.fmt = path_to_output.rpartition('.')[2] @@ -2549,7 +2552,7 @@ class EPUB_MOBI(CatalogPlugin): recommendations = [] - if opts.fmt == 'mobi' and opts.output_profile.startswith("kindle"): + if opts.fmt == 'mobi' and opts.output_profile and opts.output_profile.startswith("kindle"): recommendations.append(('output_profile', opts.output_profile, OptionRecommendation.HIGH)) recommendations.append(('no_inline_toc', True,