diff --git a/src/calibre/gui2/viewer/documentview.py b/src/calibre/gui2/viewer/documentview.py index 89461c919f..7a0c6887d1 100644 --- a/src/calibre/gui2/viewer/documentview.py +++ b/src/calibre/gui2/viewer/documentview.py @@ -699,8 +699,7 @@ class DocumentView(QWebView): # {{{ table = None parent = elem while not parent.isNull(): - if (unicode(parent.tagName()) == u'table' or - unicode(parent.localName()) == u'table'): + if (unicode(parent.tagName()) == u'table' or unicode(parent.localName()) == u'table'): table = parent break parent = parent.parent() @@ -822,8 +821,7 @@ class DocumentView(QWebView): # {{{ @property def scroll_pos(self): - return (self.document.ypos, self.document.ypos + - self.document.window_height) + return (self.document.ypos, self.document.ypos + self.document.window_height) @property def viewport_rect(self): @@ -1336,8 +1334,7 @@ class DocumentView(QWebView): # {{{ self.paged_col_scroll(scroll_past_end=not self.document.line_scrolling_stops_on_pagebreaks) else: - if (not self.document.line_scrolling_stops_on_pagebreaks and - self.document.at_bottom): + if (not self.document.line_scrolling_stops_on_pagebreaks and self.document.at_bottom): self.manager.next_document() else: amt = int((self.document.line_scroll_fraction / 100.) * 15) @@ -1347,8 +1344,7 @@ class DocumentView(QWebView): # {{{ self.paged_col_scroll(forward=False, scroll_past_end=not self.document.line_scrolling_stops_on_pagebreaks) else: - if (not self.document.line_scrolling_stops_on_pagebreaks and - self.document.at_top): + if (not self.document.line_scrolling_stops_on_pagebreaks and self.document.at_top): self.manager.previous_document() else: amt = int((self.document.line_scroll_fraction / 100.) * 15)