Skip to content

Commit 4202cc9

Browse files
committed
ScriptFinder: do not trim script menu paths
Otherwise, e.g., trailing spaces converted from underscores are lost.
1 parent 102329f commit 4202cc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scijava/script/ScriptFinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private int createInfos(final List<ScriptInfo> scripts, final Set<URL> urls,
172172
final String friendlyPath = basePath.replace('_', ' ');
173173

174174
final MenuPath menuPath = new MenuPath(menuPrefix);
175-
menuPath.addAll(new MenuPath(friendlyPath, "/"));
175+
menuPath.addAll(new MenuPath(friendlyPath, "/", false));
176176

177177
// E.g.:
178178
// path = "File/Import/Movie_File....groovy"

0 commit comments

Comments
 (0)