diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-03-27 17:30:07 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-03-27 17:30:07 -0700 |
commit | eb397b56935b6f9599cf08791ce509ab46ddcce3 (patch) | |
tree | 3488cb8bbf3e5a201c2706773101c27085c9a480 /lib | |
parent | 8b45d6f84fdb2ee627a76f412fd8cc12b206046a (diff) | |
parent | 5695e4c03d6c98fc187ec405923cd1dcf2fbdff6 (diff) | |
download | spack-eb397b56935b6f9599cf08791ce509ab46ddcce3.tar.gz spack-eb397b56935b6f9599cf08791ce509ab46ddcce3.tar.bz2 spack-eb397b56935b6f9599cf08791ce509ab46ddcce3.tar.xz spack-eb397b56935b6f9599cf08791ce509ab46ddcce3.zip |
Merge pull request #669 from glennpj/module_format
Wrap the long description of an environment module so it is more readable
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/modules.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/modules.py b/lib/spack/spack/modules.py index d45fdde703..f6a11c92e3 100644 --- a/lib/spack/spack/modules.py +++ b/lib/spack/spack/modules.py @@ -278,6 +278,6 @@ class TclModule(EnvModule): # Long description if self.long_description: module_file.write('proc ModulesHelp { } {\n') - doc = re.sub(r'"', '\"', self.long_description) - module_file.write("puts stderr \"%s\"\n" % doc) + for line in textwrap.wrap(self.long_description, 72): + module_file.write("puts stderr \"%s\"\n" % line) module_file.write('}\n\n') |