Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-139426

qmlformat adds extra newline for components only containing id property

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.11
    • 6.9.1
    • QML: Tooling

      If I run qmlformat --normalize on the following file:

      import QtQuick
      
      Item {
          id: myItem
      }

      it is formatted to this:

      import QtQuick
      
      Item {
          id: myItem
      
      } 

      The extra newline seems redundant to me.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtqmlteam Qt Qml Team User
            lorendb Loren Burkholder
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes