From: Filipe Cabecinhas Date: Wed, 7 Jun 2017 14:57:20 +0000 (+0000) Subject: PR33331 - opt-viewer.py produces broken output for directories with spaces X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a60571869bd69079bd0660a9c1fef96140df9f2;p=llvm 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 --- diff --git a/utils/opt-viewer/optrecord.py b/utils/opt-viewer/optrecord.py index 3dc77e9db01..2f930a48a05 100644 --- a/utils/opt-viewer/optrecord.py +++ b/utils/opt-viewer/optrecord.py @@ -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):