Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ericblau opened this issue Jan 26, 2024 · 0 comments
Assignees

Comments

@ericblau
Copy link

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.

@ericblau ericblau self-assigned this Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant