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

Formatting of javascript switch statements is broken

    XMLWordPrintable

Details

    • 3067f441df931771f859915633485eb050fa23f6

    Description

      switch (letter) {
              case 'a': a += 1; break;
                 case 'b': b += 1; break;
             case 'c': c += 1; break;
                 case 'd': d += 1; break;
             case 'e': e += 1; break;
                 case 'f': f += 1; break;
             }
      

      Is the scary results of using Creator to indent the code.

      It should look like

      switch (letter) {
         case 'a': a += 1; break;
         case 'b': b += 1; break;
         case 'c': c += 1; break;
         case 'd': d += 1; break;
         case 'e': e += 1; break;
         case 'f': f += 1; break;
      }
      

      Attachments

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

        Activity

          People

            ckamm Christian Kamm
            designker Nigel Hietala
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes