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

qmlformat inserts inappropriate line breaks

    XMLWordPrintable

Details

    • dc5d14c3963e25a3664ed116856e7f604e43b7af

    Description

      Input file

      import QtQuick 2.15
      
      Item {
          anchors: {
              top: parent.top;
              bottom: parent.bottom;
          }
      }
      

       

      Outcomes

      • Qt 6.3.1: qmlformat does not change anything (correct)
      • Qt 5.15.10: qmlformat adds line breaks to the anchor elements (wrong): 
      import QtQuick 2.15
      
      Item {
          anchors: {
              top:
              parent.top;
              bottom:
              parent.bottom;
          }
      }
      

      Attachments

        Activity

          People

            qtqmlteam Qt Qml Team User
            skoh-qt Sze Howe Koh
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: