Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.1.15

Request #14589 the beautifier shouldn't delete empty rows i use for making readable the code
Submitted: 2008-09-03 10:48 UTC
From: francescospegni Assigned:
Status: Bogus Package: PHP_Beautifier (version 0.1.14)
PHP Version: Irrelevant OS: ubuntu
Roadmaps: (Not assigned)    
Subscription  


 [2008-09-03 10:48 UTC] francescospegni (Francesco Spegni)
Description: ------------ i think the beautifier "eats" too many empty rows, even those i use (as an example) for dividing a function or method definition from the previous ones. it's like if the beautifier put the code lines too close each other, and the code becomes less readable. also, why not allowing (through a command line parameter) to chose whether the curly parentheses should go on the same line or on the line below?!? also: i think the leading <? such as the closing ?> should be on their own row, without any other text after and before them. what do you think about? Test script: --------------- <? function fie() { echo "fie"; } function foo() { echo "foo"; } foo(); ?> Expected result: ---------------- <? function fie() { echo "fie"; } function foo() { echo "foo"; } foo(); ?> Actual result: -------------- <? function fie() { echo "fie"; } function foo() { echo "foo"; } foo(); ?>

Comments

 [2010-01-13 18:10 UTC] fazend (FaZend Team)
You can configure this behavior by means of NewLines filter. Read this page: http://beautifyphp.sourceforge.net/docs/PHP_Beautifier/Filter/PHP_Beautifier_Filter_NewLines.html
 [2010-03-16 10:12 UTC] clbustos (Claudio Bustos)
-Status: Open +Status: Bogus
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the existing bug instead. Thank you for your interest in PEAR. Duplicate of 12271