Re: Mason Tidy!
Pedro Melo <[email protected]> Mon, 1 Oct 2012 13:05:03 +0100
| Newsgroups | gmane.comp.web.mason.user |
|---|---|
| Message-ID | <CACCxPi1+PUUa5Rz1TTe24iFXCodVeXN+WjUbWjzq=x7z+dQQrA@mail.gmail.com> |
Hi, On Fri, Sep 28, 2012 at 6:47 PM, Jonathan Swartz <[email protected]> wrote: > Yes, this was certainly a bug... > > I tried to preserve both cases (newline and no-newline at end of file), but it turns out that perltidy always enforces a newline at end, so I'm just going to do the same. Hope no one feels strongly about not having a newline at end. I for one would prefer to keep the last newline. Some git tools give me warnings when the last newline is missing (eg git-gui). Speaking of white-space: empty % lines gain an extra space (also visible in git-gui as a big read block :) ). More: if a file ends with a empty % line, the entire line is removed... I usually have an empty %-line before and after any % line... Something like: % % for my $item (...) { % ..... html code here ..... % % } % Bye, -- Pedro Melo @pedromelo http://www.simplicidade.org/ http://about.me/melo xmpp:[email protected] mailto:[email protected] ------------------------------------------------------------------------------ Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html