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

qmlformat changes formatting in the second pass

    XMLWordPrintable

Details

    • 8ab467835cdf590bcbc3a4d520f0e44dc8b457d9 (qt/qtdeclarative/5.15)

    Description

      Running qmlformat on the attached main.qml, and running it again on the formatted file creates a different output in the second pass:

      $ diff qmlformat_1st_pass.qml qmlformat_2st_pass.qml
      8d7
      < id: root
      12a12,13
      > id: root
      >
      18c19
      < return true;

      > return true

      The output from the second pass it stable and won't be reformated in any further passes.

      Attachments

        1. ImageSvgHelper.1.qml
          2 kB
        2. ImageSvgHelper.2.qml
          2 kB
        3. ImageSvgHelper.3.qml
          2 kB
        4. main.qml
          2 kB
        5. qmlformat_1st_pass.qml
          2 kB
        6. qmlformat_2st_pass.qml
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            max.goldstein Maximilian Goldstein
            VersalEszett Julius Bullinger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes