Eugene-Melbourne opened a new issue, #4641: URL: https://github.com/apache/netbeans/issues/4641
### Apache NetBeans version Apache NetBeans 15 ### What happened When programming on PHP, thanks to Netbeans Options->editor->formatting you can be in control of Blank Lines. Except for one critical parameter "at end of file". 1) Because. In PHP we have 2 standards: [PSR-2 convention](http://www.php-fig.org/psr/psr-2/#22-files) that states: > All PHP files MUST end with a single blank line. [PSR-12 #2.2 Files](https://www.php-fig.org/psr/psr-12/#22-files): > All PHP files MUST end with a non-blank line.... It would be good to give a user to decide - what to do with "at end of file", either put a blank line there, or not. 2) Because. GIT/github giving a warning message "No newline at end of file"... So the current situation with NetBeans 15 is causing this warning to be shown. you can see [stackoverflow](https://stackoverflow.com/questions/9921927/php-is-there-a-reason-to-put-a-newline-at-the-end-of-file) people struggle because of it. 3) Because in Netbeans file comparing window, the blank line "at end of file" is not shown like a change. It is just ignored colour-wise. And plus, it breaks the line to line relationshi. It shows the last line of one file against the last line of the being hard-tied on the same level, but when in reality the blank line should be shown on the extra line. Because of this last mistake of hard-tied last lines the shift of wrong lines being put one against the other is keeping going and affect the whole visible part of the file being shifted unpleasantly. (It is especially easy to see on files longer than 30 lines, when your file comparing window can only display 20 lines) ### How to reproduce _No response_ ### Did this work correctly in an earlier version? Apache NetBeans 13 ### Operating System Windowns 10 ### JDK Java: 10.0.1; Java HotSpot(TM) 64-Bit Server VM 10.0.1+10 ### Apache NetBeans packaging Apache NetBeans provided installer ### Anything else _No response_ ### Are you willing to submit a pull request? No ### Code of Conduct Yes -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
