diff --git a/recipes/nytimes.recipe b/recipes/nytimes.recipe index 2d8050bf23..802b09baf7 100644 --- a/recipes/nytimes.recipe +++ b/recipes/nytimes.recipe @@ -91,7 +91,8 @@ class NewYorkTimes(BasicNewsRecipe): dict(id=lambda x: x and 'sharetools-' in x), dict(id='newsletter-promo supported-by-ad bottom-wrapper'.split()), classes('story-print-citation supported-by accessibility-ad-header visually-hidden bottom-of-article ad'), - dict(attrs={'class': lambda x: x and ('SectionBar' in x or 'recirculation' in x or 'ResponsiveAd' in x or 'accessibility-visuallyHidden' in x or 'RelatedCoverage' in x)}), + dict(attrs={'class': lambda x: x and ( + 'SectionBar' in x or 'recirculation' in x or 'ResponsiveAd' in x or 'accessibility-visuallyHidden' in x or 'RelatedCoverage' in x)}), ] def preprocess_html(self, soup): diff --git a/recipes/nytimes_sub.recipe b/recipes/nytimes_sub.recipe index 85a282e6e2..2e377f6ed6 100644 --- a/recipes/nytimes_sub.recipe +++ b/recipes/nytimes_sub.recipe @@ -91,7 +91,8 @@ class NewYorkTimes(BasicNewsRecipe): dict(id=lambda x: x and 'sharetools-' in x), dict(id='newsletter-promo supported-by-ad bottom-wrapper'.split()), classes('story-print-citation supported-by accessibility-ad-header visually-hidden bottom-of-article ad'), - dict(attrs={'class': lambda x: x and ('SectionBar' in x or 'recirculation' in x or 'ResponsiveAd' in x or 'accessibility-visuallyHidden' in x or 'RelatedCoverage' in x)}), + dict(attrs={'class': lambda x: x and ( + 'SectionBar' in x or 'recirculation' in x or 'ResponsiveAd' in x or 'accessibility-visuallyHidden' in x or 'RelatedCoverage' in x)}), ] def preprocess_html(self, soup): diff --git a/src/calibre/gui2/dialogs/quickview.py b/src/calibre/gui2/dialogs/quickview.py index 6e7aa4101f..433abb00f3 100644 --- a/src/calibre/gui2/dialogs/quickview.py +++ b/src/calibre/gui2/dialogs/quickview.py @@ -509,8 +509,8 @@ class Quickview(QDialog, Ui_Quickview): select_item = None self.books_table.setSortingEnabled(False) self.books_table.blockSignals(True) - tt = ('

' + - _('Double click on a book to change the selection in the library view or ' + tt = ('

' + _( + 'Double click on a book to change the selection in the library view or ' 'change the column shown in the left-hand pane. ' 'Shift- or Control- double click to edit the metadata of a book, ' 'which also changes the selected book.'