[ic] rows, column, gutters question

Kevin Walsh interchange-users@icdevgroup.org
Thu Sep 26 16:48:00 2002


DB [DB@M-and-D.com] wrote:
> 
> I'm using 4.8.6 with a modified foundation. Some of my item descriptions 
> are longer than the tools demo items. Some of the receipts emailed to 
> the customer have an error:
> 
> B A D   R O W  S P E C I F I C A T I O N - columns too wide.
> 
> in the list of purchased items.
> 
> My default foundation etc/mail_receipt includes things like:
> 
> [row 82]
>          [column width=5 align=right][/column]
>          [column width=12 gutter=1][/column]
>          [column width=32 align=R wrap=1 gutter=1][/column]
>          [column width=15 gutter=1]SUBTOTAL[/column]
>          [column width=15 gutter=0 align=r][subtotal][/column]
> [/row]
> 
> The sum of the widths is 79... not 82. Does the width include the 
> gutter, or is the gutter added to the width? Since 79<>82, I assume it 
> gets added.
> 
> The docs say the default gutter is 2, so the sum of the gutters above is 
>   5. And 79+5=84, not 82.
> 
> Can someone point out the flaw(s) in my logic or my arithmetic?
> 
Your arithmetic is correct.  79 + 5 = 84, which is greater than the
82 limit set for the row, hence the "columns too wide" error message.
Either increase the [row] limit, or reduce the space taken by the
[column] tags.

It's a good idea to keep the row size to 80 characters or less,
depending upon whether you expect people to quote the generated text
in followup emails.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/