Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-7420

JS formatter inserts space before typeof

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Aptana Studio 3.2.2
    • Fix Version/s: Release 3.7.0
    • Component/s: Formatting, JS
    • Labels:
      None
    • Story Points:
      5

      Description

      Steps to Reproduce

      Format this example code:

      function test(s) {
        if (typeof (s) === "string") {
          return s;
        }
      }
      

      Actual Result

      function test(s) {
        if ( typeof (s) === "string") {
          return s;
        }
      }
      

      Formatter inserts space before `typeof (s)`

      Expected Result

      function test(s) {
        if (typeof (s) === "string") {
          return s;
        }
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pinnamuri Praveen Innamuri (Inactive)
                Reporter:
                victor-homyakov Victor Homyakov
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Git Integration