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

QML/JS -> Reformat File with comment at the start adds 2 NL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 4.14.0-beta2, Qt Creator 9.0.0-beta2
    • Quick / QML Support
    • None

    Description

      Running QML/JS -> Reformat File on a qml file from the examples (that has the usual copyright comment at the start) will add two additional newlines to the beginning of the file.

      Test case:

      Before:

      /* Hello World */
      
      import QtQuick
      
      Item {
      }
      

      After:

      
      /* HellO World */
      import QtQuick
      
      Item {}
      

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes