This commit is contained in:
Florian Bruhin 2018-09-17 20:33:19 +02:00
parent 91df81f5ab
commit 7858beee06
2 changed files with 3 additions and 3 deletions

View File

@ -349,9 +349,9 @@ def qute_gpl(_url):
return 'text/html', utils.read_file('html/license.html')
def _asciidoc_fallback_path(path):
def _asciidoc_fallback_path(html_path):
"""Fall back to plaintext asciidoc if the HTML is unavailable."""
asciidoc_path = path.replace('.html', '.asciidoc')
asciidoc_path = html_path.replace('.html', '.asciidoc')
asciidoc_paths = [asciidoc_path]
if asciidoc_path.startswith('html/doc/'):
asciidoc_paths += [asciidoc_path.replace('html/doc/', '../doc/help/'),

View File

@ -27,7 +27,7 @@ from PyQt5.QtWidgets import QMessageBox
from qutebrowser.config import (config, configdata, configfiles, configtypes,
configexc, configcommands)
from qutebrowser.utils import (objreg, usertypes, log, standarddir, message,
qtutils, utils)
qtutils)
from qutebrowser.config import configcache
from qutebrowser.misc import msgbox, objects