Author: bugman Date: Sun May 13 17:53:26 2012 New Revision: 16292 URL: http://svn.gna.org/viewcvs/relax?rev=16292&view=rev Log: The status.text_width variable is now used to wrap the user function docstrings. This is for the prompt help system. Modified: branches/uf_redesign/prompt/base_class.py Modified: branches/uf_redesign/prompt/base_class.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/prompt/base_class.py?rev=16292&r1=16291&r2=16292&view=diff ============================================================================== --- branches/uf_redesign/prompt/base_class.py (original) +++ branches/uf_redesign/prompt/base_class.py Sun May 13 17:53:26 2012 @@ -34,12 +34,6 @@ import help from status import Status; status = Status() from string import split, strip - -# The width of the text. -if platform.uname()[0] in ['Windows', 'Microsoft']: - width = 80 -else: - width = 100 def _bold_text(text): @@ -178,7 +172,7 @@ new_text = new_text + "\n" # Wrap the line. - for wrapped_line in wrap(line, width): + for wrapped_line in wrap(line, status.text_width): new_text = new_text + wrapped_line + "\n" # Return the formatted text.