On Friday 03 February 2006 08:47 am, [EMAIL PROTECTED] wrote:
>  Since CHOMP_ALL is taken I was thinking maybe
> CHOMP_KILL, or perhaps CHOMP_ALL_NO_REALLY_I_MEAN_ALL, OR CHOMP_DIE_DIE_DIE
> (But I would settle for CHOMP_KILL).  Logically the constant would take the
> value of 3 (or I guess 4 if you want chomp constants to work as a bitset -
> but I think that is overkill).   To go along with CHOMP_KILL I think that
> probably the best modifier would be '~'.
>
> So the table would be:
>
> Constant name          Constant Value      Tag Modifier
> CHOMP_NONE           0                             +
> CHOMP_ALL               1                             -
> CHOMP_COLLAPSE  2                             = # does this modifier work?
> CHOMP_KILL               3                             ~

Well if we go down this slippery slope (which hopefully isn't too slippery) - 
we probably need to distinguish between

CHOMP_NONE (0, +)
CHOMP_ALL (1, -)
CHOMP_COLLAPSE (2, =)
CHOMP_KILL_ALL (3, ~)
CHOMP_KILL_COLLAPSE (4, ^) # can't think of a better char (maybe '_')

So the mnemonics are:
'-' = remove space on the same line
'+' = positively keep all space
'=' = collapse space on this line
'~' = kill anything that looks like space across multiple lines
'^' = collapse space across multiple lines

Paul

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to