automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] test defs: add subroutine for input unindenting


From: Stefano Lattarini
Subject: Re: [PATCH] test defs: add subroutine for input unindenting
Date: Tue, 1 Mar 2011 19:30:59 +0100
User-agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )

On Tuesday 01 March 2011, Peter Rosin wrote:
> Den 2011-03-01 10:40 skrev Stefano Lattarini:
> > I'd also like to enhance `self-check-unindent.test' to ensure that
> > `unindent' remains usable in parallel in the future.  OK to commit
> > the patch below (to master)?  I'll push in 72 hours if there is no
> > objection.
> 
> One other thing that could conceivable be tested is that unindent
> behaves as desired when the first non-empty line has only spaces
> and tabs on it. E.g.
> 
> cat > input << EOF
> 
> ${tab}${sp}
> ${tab}${sp}${tab}Hello World!
> EOF
> 
> cat > exp << EOF
> 
> 
> ${tab}Hello World!
> EOF
> 
> Cheers,
> Peter
> 
>
I've mixed feelings about this.  On the one hand, I'm not sure the
current semantic is the best one, so it seems better to leave the
behaviour "unspecified"; on the other hand, this testcase is not
documentation nor public API, so fixing it would be trivial enough
in case we later decide to modify the current semantic.  Hmm...

Well, I'll just leave the decision to you and Ralf.

Regards,
  Stefano



reply via email to

[Prev in Thread] Current Thread [Next in Thread]