PR33331 - opt-viewer.py produces broken output for directories with spaces

Fix: Properly quote href attributes.

Patch by Simon Whittaker!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304919 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Filipe Cabecinhas 2017-06-07 14:57:20 +00:00
parent eeb64a67b6
commit 6a60571869

View File

@ -33,7 +33,7 @@ def html_file_name(filename):
return filename.replace('/', '_') + ".html"
def make_link(File, Line):
return "{}#L{}".format(html_file_name(File), Line)
return "\"{}#L{}\"".format(html_file_name(File), Line)
class Remark(yaml.YAMLObject):