Just a note in case anyone else has trouble with custom reporting
formats. I just built 3.0.0-20120217 and noticed a formatting rule
that used to work:
%(ansify_if(format_date(date, "%Y-%m"), green if color and date > today))
%(ansify_if(justify(scrub(display_total), 4 + total_width, true, color),
bold if should_bold))\n
now complains:
While evaluating value expression:
ansify_if(justify(scrub(display_total), (4 + total_width), true, color),
(should_bold ? (bold : null)))
While adding 12 to 4:
While calling function 'justify (<#EXPR scrub(display_total)>, <#EXPR ({4}
+ total_width)>, 1, 1)':
While calling function 'ansify_if (<#EXPR justify(scrub(display_total),
({4} + total_width), true, color)>, (null))':
Error: Cannot add a string to an amount
Looking at the report.cc and report.h source, it appears that I now need to
use 'int(total_width)' instead of just 'total_width'.
Jim