diff options
author | Glenn Johnson <glenn-johnson@uiowa.edu> | 2016-03-27 15:37:52 -0500 |
---|---|---|
committer | Glenn Johnson <glenn-johnson@uiowa.edu> | 2016-03-27 15:42:20 -0500 |
commit | 5695e4c03d6c98fc187ec405923cd1dcf2fbdff6 (patch) | |
tree | 3480ee16622f3bb69686fdf77949921fb6af0154 /lib | |
parent | 82c09e66d22933303f4284713f5daf464d733975 (diff) | |
download | spack-5695e4c03d6c98fc187ec405923cd1dcf2fbdff6.tar.gz spack-5695e4c03d6c98fc187ec405923cd1dcf2fbdff6.tar.bz2 spack-5695e4c03d6c98fc187ec405923cd1dcf2fbdff6.tar.xz spack-5695e4c03d6c98fc187ec405923cd1dcf2fbdff6.zip |
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') |