develooper Front page | perl.perl5.porters | Postings from July 2016

Re: Indented here docs?

Thread Previous | Thread Next
From:
wolfsage
Date:
July 1, 2016 12:36
Subject:
Re: Indented here docs?
Message ID:
CAJ0K8bhvcJbyS7mkqvisZP8+x8dJhTzAaBU_UYG+E_crZ978Cw@mail.gmail.com
On Fri, Jul 1, 2016 at 7:56 AM, Ed Avis <eda@waniasset.com> wrote:
> Alberto Simões <albie <at> alfarrabio.di.uminho.pt> writes:
>
>>Let it work only if the prefix is the same, exactly the same order of
>>tab and spaces?
>
> Personally I think that is the best choice.  It keeps well away from holy
> wars about the exact size of a tab.
>

This is the way I've implemented it. If your EOF is preceded by three
spaces and a tab, then each line must have that identical indentation,
otherwise for those lines that don't match, a warning is thrown and
they are not modified.

-- Matthew Horsfall (alh)

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About