michaelklishin / cucumber.el

Emacs mode for editing Cucumber plain text stories
None!
253 stars 90 forks source link

Undesired indentation when writing feature #72

Open zzantares opened 7 years ago

zzantares commented 7 years ago

Hello, thanks for the package it's been great so far except for this. I'm having an annoyance with indentation in .feature files, I don't know if this is a feature rather than a bug (see what I did there? :satisfied:). As I write the feature and type RET to get a new line, the feature gets indented like this:

          Feature: manage lessons.

            Scenario: mentor with no lessons attempt to create a lesson.
              Given a new mentor which have no lessons created
              When he submits data to create a new lesson
              Then the lesson is saved and linked to his account.

Note the extra spaces (10 spaces), I would like to get this instead:

Feature: manage lessons.

  Scenario: mentor with no lessons attempt to create a lesson.
    Given a new mentor which have no lessons created
    When he submits data to create a new lesson
    Then the lesson is saved and linked to his account.

What setting could be affecting here?

I hope someone could help. Thanks!