Author: bugman Date: Thu May 31 16:08:04 2012 New Revision: 16563 URL: http://svn.gna.org/viewcvs/relax?rev=16563&view=rev Log: Lists are now formatted for the prompt uf help strings from the Desc_container objects. 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=16563&r1=16562&r2=16563&view=diff ============================================================================== --- branches/uf_redesign/prompt/uf_objects.py (original) +++ branches/uf_redesign/prompt/uf_objects.py Thu May 31 16:08:04 2012 @@ -280,6 +280,15 @@ if type in ['paragraph', 'verbatim']: doc += format_text(element) + '\n' + # A list. + elif type == 'list': + # Loop over the list elements. + for j in range(len(element)): + doc += format_text(" - %s" % element[j]) + + # Final newline. + doc += '\n' + # A table. elif type == 'table': doc += create_table(element) + '\n'