Author: bugman Date: Tue May 8 21:41:47 2012 New Revision: 16123 URL: http://svn.gna.org/viewcvs/relax?rev=16123&view=rev Log: All leading whitespace is stripped from the docs before creating the auto-generated uf description. The detection of the end of the table has also been simplified, as stripping the whitespace broke the logic. Modified: branches/uf_redesign/gui/uf_objects.py Modified: branches/uf_redesign/gui/uf_objects.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/uf_objects.py?rev=16123&r1=16122&r2=16123&view=diff ============================================================================== --- branches/uf_redesign/gui/uf_objects.py (original) +++ branches/uf_redesign/gui/uf_objects.py Tue May 8 21:41:47 2012 @@ -474,6 +474,9 @@ # The title. yield doc[0], 'title' + # Strip the leading whitespace, if needed. + doc[1] = _strip_lead(doc[1]) + # Split up the description. docstring_lines = split(doc[1], "\n") @@ -494,7 +497,7 @@ text[-1] = "%s%s\n" % (text[-1], line) # End of the table. - if in_table and search('^\\|_', line): + if in_table and line == '': in_table = False text.append("") type.append("desc")