Author: bugman Date: Fri Jun 1 15:57:24 2012 New Revision: 16592 URL: http://svn.gna.org/viewcvs/relax?rev=16592&view=rev Log: Itemised lists without items are now supported in the prompt help strings. This is to mimic the LaTeX behaviour to allow lists with no 'bullets'. Modified: branches/uf_redesign/prompt/uf_objects.py Modified: branches/uf_redesign/prompt/uf_objects.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/prompt/uf_objects.py?rev=16592&r1=16591&r2=16592&view=diff ============================================================================== --- branches/uf_redesign/prompt/uf_objects.py (original) +++ branches/uf_redesign/prompt/uf_objects.py Fri Jun 1 15:57:24 2012 @@ -342,7 +342,11 @@ elif type == 'item list': # Loop over the list elements. for j in range(len(element)): - doc += format_text(" %s: %s" % (element[j][0], element[j][1])) + # No item. + if element[j][0] in [None, '']: + doc += format_text(" %s" % element[j][1]) + else: + doc += format_text(" %s: %s" % (element[j][0], element[j][1])) # Final newline. doc += '\n'