Skip to content

Commit

Permalink
Fix my fix to Patch #737
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McLay committed Dec 13, 2024
1 parent 31a1f76 commit 04b2d44
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.new
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,5 @@ Lmod 8.7+
* Removed MRC:__marged_hiddenT, MRC:__marged_forbiddenT and MRC:__mergedAlias2modT
* Issue #731: Support for env. var. LMOD_SHOW_HIDDEN
* Issue #739: Make tcl files have "spider" as mode matching when Lmod is in spider mode.
(8.7.55) * Patch #737: A better test for spaces in front of #

2 changes: 1 addition & 1 deletion rt/deprecation/etc/admin.list
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# value
#
# key2: value ..

# a comment

gcc/4.2.3: This is old and you should not be using it.

Expand Down
4 changes: 2 additions & 2 deletions src/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ function readAdmin()

for v in whole:split("\n") do
repeat
v = v:gsub("%s+","")
if (v:sub(1,1) == "#") then
v = v:gsub("^%s+$","")
if (v:find("^%s*#")) then
-- ignore this comment line
break

Expand Down

0 comments on commit 04b2d44

Please sign in to comment.