From fac5641e600a273f6c82a2de97cb4c74009de9ff Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Tue, 24 Sep 2024 10:28:08 -0400 Subject: [PATCH] escape links in Profile clickable terminal links --- stdlib/Profile/src/Profile.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/Profile/src/Profile.jl b/stdlib/Profile/src/Profile.jl index c7ef1efb35945f..76333523099638 100644 --- a/stdlib/Profile/src/Profile.jl +++ b/stdlib/Profile/src/Profile.jl @@ -808,7 +808,7 @@ end # Similar to `define_default_editors` in `Base.Filesystem` but for creating URIs not commands function editor_link(path::String, linenum::Int) editor = get(ENV, "JULIA_EDITOR", "") - + path = escape_string(path) if editor == "code" return "vscode://file/$path:$linenum" elseif editor == "subl" || editor == "sublime_text"