If a module file has a name:value pair that includes whitespace between the : delimiter and the value, such as:
whatis("Name: SDSC")
IPF will publish the module with the name " SDSC", not "SDSC".
It is nice for the whatis name:value pair to be able to include whitespace, as lmod displays that string directly, and it is more readable with whitespace. Also, several of our examples in our documentation include such whitespace.
Thus, the regexes in modules.py extmodules _addModule should strip leading whitespace from the values.
If a module file has a name:value pair that includes whitespace between the : delimiter and the value, such as: whatis("Name: SDSC")
IPF will publish the module with the name " SDSC", not "SDSC". It is nice for the whatis name:value pair to be able to include whitespace, as lmod displays that string directly, and it is more readable with whitespace. Also, several of our examples in our documentation include such whitespace.
Thus, the regexes in modules.py extmodules _addModule should strip leading whitespace from the values.