Incorrect reformat of gerkin .feature files

PHPStorm is not correctly formatting tags of scenarios when there's more than one tag.

For example, this is corectly formatted gerkin file:

Feature: Upgrades
  Customers can buy new services in the backend
  @javascript @merchant
  Scenario: Customer submits valid billing details and activates new service
    Given I am "Steven Borne"
    And I have logged in

When you do code reformat it becomes:

Feature: Upgrades
   Customers can buy new services in the backend
  @javascript @merchant

   Scenario: Customer submits valid billing details and activates new service
     Given I am "Steven Borne"
     And I have logged in

Now the file cannot be parsed.

1 comment
Comment actions Permalink

Hi there,

Please post reproducable bug reports directly to the Issue Tracker: http://youtrack.jetbrains.com/issues/WI

0

Please sign in to leave a comment.