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

"Auto-indent Selection" adds whitespace on empty lines

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • Qt Creator 4.5.0, Qt Creator 4.6.0-beta1
    • C/C++/Obj-C++ Support
    • None

    Description

      When using "Auto-indent Selection" on code that contain empty lines, whitespace is added on empty lines.

      For instance, using '.' to show spaces:

      void f() {
      
      ....int a = 0;
      
      ....return;
      
      }
      

      Becomes:

      void f() {
      ....
      ....int a = 0;
      ....
      ....return;
      ....
      }
      

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            bterrier Benjamin Terrier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes