Author: bugman Date: Fri Jun 1 11:21:25 2012 New Revision: 16583 URL: http://svn.gna.org/viewcvs/relax?rev=16583&view=rev Log: Fix for the wrapping of tables for the prompt help strings. Sometimes the total_width was not being reset to the maximum allowed width of status.text_width. Modified: branches/uf_redesign/prompt/uf_docstring.py Modified: branches/uf_redesign/prompt/uf_docstring.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/prompt/uf_docstring.py?rev=16583&r1=16582&r2=16583&view=diff ============================================================================== --- branches/uf_redesign/prompt/uf_docstring.py (original) +++ branches/uf_redesign/prompt/uf_docstring.py Fri Jun 1 11:21:25 2012 @@ -137,6 +137,9 @@ free_space_wrap = free_space col_wrap = [True] * num_cols + # New total width. + total_width = status.text_width + # Loop. while 1: # The average column width. @@ -171,9 +174,6 @@ new_widths[i] = ave_width break - # New total width. - total_width = status.text_width - # Debugging printouts. if status.debug: print(" %-20s %s" % ("widths:", widths))