Branch: refs/heads/master
Home: https://github.com/Starlink/starlink
Commit: a395d096e14c8e578a5421b0e71e60a78fbe781e
https://github.com/Starlink/starlink/commit/a395d096e14c8e578a5421b0e71e60a78fbe781e
Author: Graham Bell <[log in to unmask]>
Date: 2013-12-09 (Mon, 09 Dec 2013)
Changed paths:
M applications/cupid/cupidsub/cupidstoreclumps.c
Log Message:
-----------
cupid: Prevent logfile columns merging together
Now explicity include a space between the columns of the CUPID
log file. Previously certain numbers such as -0.00049505531414
could overflow into the adjacent column which would then continue
with no separation. The problem with the formatting expression
"%-*.*g", LOGTAB, LOGTAB-5 is that the second number is the
number of significant digits, but the example number above
has 6 characters before the first significant digit, so the
restriction doesn't prevent the column overflowing. Since the
first formatting parameter specifies the minimum width,
the column can still be too wide, causing misalignment
of the table. Lines in the table are also one character
shorter, but another space could be added to the end of
every line if that turns out to be a problem.
|