This commit is contained in:
Florian Bruhin 2016-04-01 08:16:28 +02:00
parent 272eb28d7b
commit 4daf4a8e64
2 changed files with 2 additions and 2 deletions

View File

@ -213,7 +213,8 @@ def qute_help(win_id, request):
if urlpath.endswith('.png'):
return utils.read_file(path, binary=True)
else:
return utils.read_file(path).encode('UTF-8', errors='xmlcharrefreplace')
data = utils.read_file(path)
return data.encode('UTF-8', errors='xmlcharrefreplace')
@add_handler('settings')

View File

@ -87,7 +87,6 @@ class AsciiDoc:
files.append((src, dst))
# patch image links to use local copy
modified_files = []
replacements = [
("http://qutebrowser.org/img/cheatsheet-big.png",
"qute://help/img/cheatsheet-big.png"),