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

qmlformat: does not preserve empty lines

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.8.0 FF, 6.10
    • 6.8.0
    • QML: Tooling
    • None
    • 0ead48409 (dev)

    Description

      Empty lines are not preserved in some cases.

      Input:

      import QtQuick 2.15
      
      MouseArea {
        onClicked: {
          console.log("start");
      
          console.log("end");
        }
      }
      

      Output:

      import QtQuick 2.15
      
      MouseArea {
        onClicked: {
          console.log("start");
          console.log("end");
        }
      }
      

      Empty lines between two log lines is removed.

      Attachments

        For Gerrit Dashboard: QTBUG-123864
        # Subject Branch Project Status CR V

        Activity

          People

            diseraluca Luca Di Sera
            svlasov Sergey Vlasov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes