Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5075

Remove multiple empty lines when formatting PHP code

    XMLWordPrintableJSON

Details

    Description

      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 

      function foo() {
          echo "Start\n";
      
      
          echo "End\n";
      }
      

      will be formatted this way

      function foo() {
          echo "Start\n";
      
          echo "End\n";
      }
      

      Attachments

        1. netbeans-5075.png
          81 kB
          Tomáš Procházka

        Issue Links

          Activity

            People

              Kacer Tomáš Procházka
              Kacer Tomáš Procházka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 50m
                  3h 50m