Author: bugman Date: Sun Jun 3 22:54:17 2012 New Revision: 16610 URL: http://svn.gna.org/viewcvs/relax?rev=16610&view=rev Log: Removed the vertical lines in the tables of the prompt UI help strings. The tables now look much more professional! 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=16610&r1=16609&r2=16610&view=diff ============================================================================== --- branches/uf_redesign/prompt/uf_docstring.py (original) +++ branches/uf_redesign/prompt/uf_docstring.py Sun Jun 3 22:54:17 2012 @@ -118,9 +118,9 @@ # The free space for the text. used = 0 - used += 2 # Start of the table '| '. - used += 2 # End of the table ' |'. - used += 3 * (num_cols - 1) # Middle of the table ' | '. + used += 2 # Start of the table ' '. + used += 2 # End of the table ' '. + used += 3 * (num_cols - 1) # Middle of the table ' '. free_space = status.text_width - used # The maximal width for all cells. @@ -194,7 +194,7 @@ total_width = sum(new_widths) + used # The header. - text += "_" * total_width + "\n" # Top rule. + text += " " + "_" * (total_width - 2) + "\n" # Top rule. text += table_line(widths=new_widths) # Blank line. text += table_line(text=table.headings, widths=new_widths) # The headings. text += table_line(widths=new_widths, bottom=True) # Middle rule. @@ -274,18 +274,18 @@ # Initialise. if bottom: - line = "|_" - else: - line = "| " + line = " _" + else: + line = " " # Loop over the columns. for i in range(len(widths)): # The column separator. if i > 0: if bottom: - line += "_|_" + line += "___" else: - line += " | " + line += " " # A bottom line. if bottom: @@ -302,9 +302,9 @@ # Close the line. if bottom: - line += "_|\n" - else: - line += " |\n" + line += "_ \n" + else: + line += " \n" # Return the text. return line