Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-27344

qmlformat adds space on line after nullish coalesce

    XMLWordPrintable

    Details

    • Platform/s:
      Windows
    • Commits:
      556ec7c20e (qt-creator/qt-creator/master)

      Description

      qmlformat moves the "unrelatedProp" over a bunch of whitespace to align with the "N/A" because of the nullish coalescing.

      import QtQuick 2.15
      import QtQuick.Controls 2.15
      
      Item {
          property string otherString: ""
          property string aProp: otherString ?? "N/A"
                                                property int unrelatedProp: 10
      }
      

        Attachments

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

          Activity

            People

            Assignee:
            fawzi Fawzi Mohamed
            Reporter:
            jhuels20 Joshua Huels
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes