summaryrefslogtreecommitdiff
path: root/bin/autom4te.in
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-07-13 10:35:32 -0600
committerEric Blake <ebb9@byu.net>2009-07-16 06:24:21 -0600
commit497a186732392d9ae297125071fc11794d364fcb (patch)
tree3ae7868409983dff938a45823cd2385d21118fed /bin/autom4te.in
parentf2563825193e02c183cf831efff4db7f0d6d574a (diff)
downloadautoconf-497a186732392d9ae297125071fc11794d364fcb.tar.gz
Don't hide leading space in autom4te --trace output.
* bin/autom4te.in (handle_traces): Don't flatten leading and trailing space, since tracing spacing bugs can be useful. * tests/tools.at (autom4te --trace and whitespace): New test. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'bin/autom4te.in')
-rw-r--r--bin/autom4te.in5
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/autom4te.in b/bin/autom4te.in
index 1baf507f..3103369c 100644
--- a/bin/autom4te.in
+++ b/bin/autom4te.in
@@ -750,10 +750,7 @@ sub handle_traces ($$%)
# Note that the second pattern is `newline, tab or space'. Don't lose
# the tab!
define([at_flatten],
- [at_patsubst(at_patsubst(at_patsubst(at_patsubst([[[[$1]]]], [\\\n]),
- [[\n\t ]+], [ ]),
- [ *\(.\)$], [\1]),
- [^ *\(.*\)], [[\1]])])
+ [at_patsubst(at_patsubst([[[$1]]], [\\\n]), [[\n\t ]+], [ ])])
define([at_args], [at_shift(at_shift(at_shift(at_shift(at_shift($@)))))])
define([at_at], [_$0([$1], at_args($@))])