You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Tomáš Procházka (Jira)" <ji...@apache.org> on 2020/12/01 17:56:00 UTC

[jira] [Commented] (NETBEANS-5075) Remove multiple empty lines when formatting PHP code

    [ https://issues.apache.org/jira/browse/NETBEANS-5075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17241738#comment-17241738 ] 

Tomáš Procházka commented on NETBEANS-5075:
-------------------------------------------

PR adds new formatting option and modifies formatting:

!netbeans-5075.png!

> Remove multiple empty lines when formatting PHP code
> ----------------------------------------------------
>
>                 Key: NETBEANS-5075
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5075
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: php - Formatting &amp; Indentation
>    Affects Versions: 12.2
>            Reporter: Tomáš Procházka
>            Assignee: Tomáš Procházka
>            Priority: Minor
>              Labels: pull-request-available
>         Attachments: netbeans-5075.png
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Formatting options for PHP code offer al lot of different places where blank lines can be placed.
> It would be useful if formatting could remove repeated blank lines from code and leave only one line.
> For example this code 
> {code:php}
> function foo() {
>     echo "Start\n";
>     echo "End\n";
> }
> {code}
> will be formatted this way
> {code:php}
> function foo() {
>     echo "Start\n";
>     echo "End\n";
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists