mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-29 03:00:45 -04:00
Replace spaces with underscores when mapping filenames to ids in the showcase, closes #1926
This commit is contained in:
@@ -82,7 +82,7 @@
|
||||
el = document.createElement("span");
|
||||
el.id = "srcref_" + srcref;
|
||||
var ref = srcref;
|
||||
var code = document.getElementById(srcfile.replace(/\./g, "_") + "_code");
|
||||
var code = document.getElementById(srcfile.replace(/\.|\s+/g, "_") + "_code");
|
||||
// if there is no code file (might be a shiny file), quit early
|
||||
if (!code) return;
|
||||
var start = findTextPoint(code, ref[0], ref[4]);
|
||||
|
||||
Reference in New Issue
Block a user