diff options
author | Florian Bruhin <git@the-compiler.org> | 2018-03-19 09:13:50 +0100 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2018-03-19 09:13:50 +0100 |
commit | f2864c62539c762c2096bfb5ba2f657405af77b5 (patch) | |
tree | c37bbfe69d4c31c325bb2e73c2f061986dbc908a /qutebrowser/browser/greasemonkey.py | |
parent | 8ae3047f2a156b181e0974a3faa6082aeb45e160 (diff) | |
download | qutebrowser-f2864c62539c762c2096bfb5ba2f657405af77b5.tar.gz qutebrowser-f2864c62539c762c2096bfb5ba2f657405af77b5.zip |
Break greasemonkey_wrapper lines differently
Diffstat (limited to 'qutebrowser/browser/greasemonkey.py')
-rw-r--r-- | qutebrowser/browser/greasemonkey.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qutebrowser/browser/greasemonkey.py b/qutebrowser/browser/greasemonkey.py index 6879f4cf6..aed4e04cf 100644 --- a/qutebrowser/browser/greasemonkey.py +++ b/qutebrowser/browser/greasemonkey.py @@ -104,12 +104,12 @@ class GreasemonkeyScript: browser's debugger/inspector will not match up to the line numbers in the source script directly. """ - return jinja.js_environment.get_template( - 'greasemonkey_wrapper.js').render( - scriptName="/".join([self.namespace or '', self.name]), - scriptInfo=self._meta_json(), - scriptMeta=self.script_meta, - scriptSource=self._code) + template = jinja.js_environment.get_template('greasemonkey_wrapper.js') + return template.render( + scriptName="/".join([self.namespace or '', self.name]), + scriptInfo=self._meta_json(), + scriptMeta=self.script_meta, + scriptSource=self._code) def _meta_json(self): return json.dumps({ |