From 13cb5ddb311e5b5416e8fef06e386a53145cdfb6 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 27 May 2014 15:46:39 +0200 Subject: [PATCH] Nicer qute:version with copyright info. --- qutebrowser/network/qutescheme.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qutebrowser/network/qutescheme.py b/qutebrowser/network/qutescheme.py index 51c3e5131..4a02a98cd 100644 --- a/qutebrowser/network/qutescheme.py +++ b/qutebrowser/network/qutescheme.py @@ -22,6 +22,7 @@ Module attributes: pyeval_output: The output of the last :pyeval command. """ +import qutebrowser import cgi import qutebrowser.utils.log as log @@ -114,7 +115,11 @@ class QuteHandlers: def qute_version(cls): """Handler for qute:version. Return HTML content as bytes.""" text = cgi.escape(version.version()) - html = '
{}
'.format(text) + version.GPL_BOILERPLATE_HTML + html = '

Version info

' + html += '

{}

'.format(text.replace('\n', '
')) + html += '

Copyright info

' + html += '

{}

'.format(qutebrowser.__copyright__) + html += version.GPL_BOILERPLATE_HTML return _get_html('Version', html) @classmethod