@@ -424,12 +424,15 @@ def get_description(self, conflict=True):
424424 """
425425 Generate a description.
426426 """
427- lines = [
427+ txt = ' \n ' . join ( [
428428 "proc ModulesHelp { } {" ,
429429 " puts stderr {%s" % self ._generate_help_text (),
430430 " }" ,
431431 '}' ,
432432 '' ,
433+ ])
434+
435+ lines = [
433436 '%(whatis_lines)s' ,
434437 '' ,
435438 "set root %(installdir)s" ,
@@ -447,10 +450,9 @@ def get_description(self, conflict=True):
447450 # - 'conflict Compiler/GCC/4.8.2/OpenMPI' for 'Compiler/GCC/4.8.2/OpenMPI/1.6.4'
448451 lines .extend (['' , "conflict %s" % os .path .dirname (self .app .short_mod_name )])
449452
450- txt = '\n ' .join (lines + ['' ]) % {
453+ txt + = '\n ' .join ([ '' ] + lines + ['' ]) % {
451454 'name' : self .app .name ,
452455 'version' : self .app .version ,
453- 'description' : self .app .cfg ['description' ],
454456 'whatis_lines' : '\n ' .join (["module-whatis {%s}" % line for line in self ._generate_whatis_lines ()]),
455457 'installdir' : self .app .installdir ,
456458 }
@@ -672,10 +674,13 @@ def get_description(self, conflict=True):
672674 """
673675 Generate a description.
674676 """
675- lines = [
677+ txt = ' \n ' . join ( [
676678 'help([[%s' % self ._generate_help_text (),
677679 ']])' ,
678680 '' ,
681+ ])
682+
683+ lines = [
679684 "%(whatis_lines)s" ,
680685 '' ,
681686 'local root = "%(installdir)s"' ,
@@ -688,10 +693,9 @@ def get_description(self, conflict=True):
688693 # conflict on 'name' part of module name (excluding version part at the end)
689694 lines .extend (['' , 'conflict("%s")' % os .path .dirname (self .app .short_mod_name )])
690695
691- txt = '\n ' .join (lines + ['' ]) % {
696+ txt + = '\n ' .join ([ '' ] + lines + ['' ]) % {
692697 'name' : self .app .name ,
693698 'version' : self .app .version ,
694- 'description' : self .app .cfg ['description' ],
695699 'whatis_lines' : '\n ' .join (["whatis([[%s]])" % line for line in self ._generate_whatis_lines ()]),
696700 'installdir' : self .app .installdir ,
697701 'homepage' : self .app .cfg ['homepage' ],
0 commit comments