access-ci-org / ipf

The Information Publishing Framework for publishing HPC/HTC resource information to ACCESS-CI Information Services.
Apache License 2.0
0 stars 1 forks source link

Name: Value pairs in module-whatis (or whatis) entries get published with leading whitespace #6

Open ericblau opened 8 months ago

ericblau commented 8 months ago

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.