I'd really like to be able to use perltidy to make the code that I edit and contribute more readable. Is there a particular indentation style that you think would be good to use on code that I change in Koha? I couldn't find much about this on the wiki.
If my notes from 1.9 are accurate, we used to use perltidy -bar -ce -pt=2 -vt=2 -en=4 which is almost what is in the perlstyle manual, except cuddled elses. However, it's not been enforced much and "more readable" depends on what you're using to read it...
Super, a step towards consensus!
I've opened up bug 2269 to add a perltidyrc file with these options and will work to follow it. <http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=2269>
Heya Andy Just a quickie from me on this great topic i have recently found 2 nice vim macros that allow you to select a block of text and perltidy it, and perltidy the whole file too (the following example has these 2 macros bound to keys f4, and f5) stick this in your ~/vimrc file, and feel good ;) " Enable Perltidy processing map <F4> <Esc>:%! perltidy<CR> map <F5> <Esc>:'<,'>! perltidy<CR> cheers, Mason. _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel