Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/epubview/widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'epubview/widgets.py')
-rw-r--r--epubview/widgets.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/epubview/widgets.py b/epubview/widgets.py
index 7ab1585..078ae3b 100644
--- a/epubview/widgets.py
+++ b/epubview/widgets.py
@@ -12,7 +12,11 @@ class _WebView(webkit.WebView):
This is done via javascript at the moment
'''
#TODO: Need to check status of page load
- js = 'oldtitle=document.title;document.title=Math.max(document.body.scrollHeight, document.body.offsetHeight,document.documentElement.clientHeight, document.documentElement.scrollHeight, document.documentElement.offsetHeight);'
+ js = 'oldtitle=document.title;' + \
+ 'document.title=Math.max(document.body.scrollHeight, ' + \
+ 'document.body.offsetHeight,document.documentElement.clientHeight,' + \
+ 'document.documentElement.scrollHeight, ' + \
+ 'document.documentElement.offsetHeight);'
self.execute_script(js)
ret = self.get_main_frame().get_title()
js = 'document.title=oldtitle;'
@@ -26,5 +30,7 @@ class _WebView(webkit.WebView):
Adds incr pixels of padding to the end of the loaded (X)HTML page.
This is done via javascript at the moment
'''
- js = ('var newdiv = document.createElement("div");newdiv.style.height = "%dpx";document.body.appendChild(newdiv);' % incr)
+ js = ('var newdiv = document.createElement("div");' + \
+ 'newdiv.style.height = "%dpx";document.body.appendChild(newdiv);' \
+ % incr)
self.execute_script(js)