mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
E-book viewer: Handle self-closing heading tags in XHTML documents correctly. Fixes #5413 (Rendering of ePub in view is incorrect)
This commit is contained in:
parent
e5bb3888af
commit
6c62c10ac2
@ -423,7 +423,7 @@ class DocumentView(QWebView):
|
||||
QWebView.__init__(self, *args)
|
||||
self.debug_javascript = False
|
||||
self.shortcuts = Shortcuts(SHORTCUTS, 'shortcuts/viewer')
|
||||
self.self_closing_pat = re.compile(r'<([a-z]+)\s+([^>]+)/>',
|
||||
self.self_closing_pat = re.compile(r'<([a-z1-6]+)\s+([^>]+)/>',
|
||||
re.IGNORECASE)
|
||||
self.setSizePolicy(QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding))
|
||||
self._size_hint = QSize(510, 680)
|
||||
|
Loading…
x
Reference in New Issue
Block a user