Subject: | CHOMP_ALL != CHOMP_ONE |
Hi,
I suggest not alias CHOMP_ONE to CHOMP_ALL, instead create it as another
option.
for PRE_CHOMP = CHOMP_ALL:
# bin = 'bin'
# arg = 'arg'
<template>
exec [% bin %] [% arg %]
</template>
it gives:
<output>
exec binarg
</output>
the addtional space between [% bin %]<- here ->[% arg %] has been taken
away.
This is not good for template which produces script.
Actually I am thinking of implementing CHOMP_ONE in this way:
# if ($chomp == CHOMP_ALL) {
# $pre =~ s{ (\n|^) [^\S\n]* \z }{}mx;
# }
if ($chomp == CHOMP_ONE) {
$pre =~ s{ \n [^\S\n]* \z }{}mx;
}
It won't 'eat' pure space(s) between 2 settings.
cheers