Commit fa667569 authored by anonym's avatar anonym
Browse files

tails-documentation: add support for anchors for offline usage too.

It was an oversight that anchor support wasn't implemented in the
python port.
parent 24aa1a43
......@@ -117,6 +117,8 @@ try:
uri = 'file://' + next(trial for trial in trials if os.path.isfile(trial))
except StopIteration:
sys.exit('error: could not find the requested documentation page')
if anchor is not None:
uri = uri + '#' + anchor
if '..' in uri.split(os.sep):
sys.exit('error: cannot escape from {}'.format(wiki_path))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment