mailr18676 - /trunk/prompt/uf_docstring.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on March 07, 2013 - 18:04:
Author: bugman
Date: Thu Mar  7 18:04:55 2013
New Revision: 18676

URL: http://svn.gna.org/viewcvs/relax?rev=18676&view=rev
Log:
Deleted prompt.uf_docstring.table_line() as this is now a private function of 
lib.text.table.


Modified:
    trunk/prompt/uf_docstring.py

Modified: trunk/prompt/uf_docstring.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/prompt/uf_docstring.py?rev=18676&r1=18675&r2=18676&view=diff
==============================================================================
--- trunk/prompt/uf_docstring.py (original)
+++ trunk/prompt/uf_docstring.py Thu Mar  7 18:04:55 2013
@@ -123,54 +123,3 @@
 
     # Return the formatted text.
     return new_text
-
-
-def table_line(text=None, widths=None, bottom=False):
-    """Format a line of a table.
-
-    @keyword text:      The list of table elements.  If not given, an empty 
line will be be produced.
-    @type text:         list of str or None
-    @keyword widths:    The list of column widths for the table.
-    @type widths:       list of int
-    @keyword botton:    A flag which if True will cause a table bottom line 
to be produced.
-    @type bottom:       bool
-    @return:            The table line.
-    @rtype:             str
-    """
-
-    # Initialise.
-    if bottom:
-        line = " _"
-    else:
-        line = "  "
-
-    # Loop over the columns.
-    for i in range(len(widths)):
-        # The column separator.
-        if i > 0:
-            if bottom:
-                line += "___"
-            else:
-                line += "   "
-
-        # A bottom line.
-        if bottom:
-            line += "_" * widths[i]
-
-        # Empty line.
-        elif text == None:
-            line += " " * widths[i]
-
-        # The text.
-        else:
-            line += text[i]
-            line += " " * (widths[i] - len(text[i]))
-
-    # Close the line.
-    if bottom:
-        line += "_ \n"
-    else:
-        line += "  \n"
-
-    # Return the text.
-    return line




Related Messages


Powered by MHonArc, Updated Thu Mar 07 18:20:02 2013