Skip to content

Commit

Permalink
PR33331 - opt-viewer.py produces broken output for directories with s…
Browse files Browse the repository at this point in the history
…paces

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
  • Loading branch information
filcab committed Jun 7, 2017
1 parent eeb64a6 commit 6a60571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/opt-viewer/optrecord.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6a60571

Please sign in to comment.