Author: bugman Date: Fri Jul 8 09:01:05 2011 New Revision: 13512 URL: http://svn.gna.org/viewcvs/relax?rev=13512&view=rev Log: Bug fix for the sequence.write() user function when the column separator is not whitespace. The column widths are no longer fixed is the separator is not whitespace. Modified: 1.3/relax_io.py Modified: 1.3/relax_io.py URL: http://svn.gna.org/viewcvs/relax/1.3/relax_io.py?rev=13512&r1=13511&r2=13512&view=diff ============================================================================== --- 1.3/relax_io.py (original) +++ 1.3/relax_io.py Fri Jul 8 09:01:05 2011 @@ -796,6 +796,11 @@ # The spin ID column lengths. len_args = [10] * 6 for i in range(len(args)): + # Different separator. + if sep: + len_args[i] = 0 + continue + # Minimum width of the header name lengths. if args[i] and len(arg_names[i]) > len_args[i]: len_args[i] = len(arg_names[i]) + 2 @@ -806,6 +811,8 @@ len_args[i] = len(repr(args[i][spin_index])) + 1 # Data and error formatting strings. + if sep: + data_length = '' data_head_format = "%%-%ss" % data_length if not data_format: data_format = "%%%ss" % data_length