Merge pull request #669 from glennpj/module_format
Wrap the long description of an environment module so it is more readable
This commit is contained in:
commit
eb397b5693
@ -278,6 +278,6 @@ def write_header(self, module_file):
|
|||||||
# Long description
|
# Long description
|
||||||
if self.long_description:
|
if self.long_description:
|
||||||
module_file.write('proc ModulesHelp { } {\n')
|
module_file.write('proc ModulesHelp { } {\n')
|
||||||
doc = re.sub(r'"', '\"', self.long_description)
|
for line in textwrap.wrap(self.long_description, 72):
|
||||||
module_file.write("puts stderr \"%s\"\n" % doc)
|
module_file.write("puts stderr \"%s\"\n" % line)
|
||||||
module_file.write('}\n\n')
|
module_file.write('}\n\n')
|
||||||
|
Loading…
Reference in New Issue
Block a user