mapado/prettier-plugin-gherkin

Free-form descriptions under Feature, Scenario, Background, etc. should be wrapped using the printWidth prettier option

Closed this issue · 3 comments

The text in free-form descriptions should take the printWidth prettier option into account. For example:

Feature: lorem ipsum

Dolor sit amet consectetur qui dolorem ipsum, quia dolor sit amet consectetur adipisci velit, sed quia non numquam eius modi tempora incidunt, ut labore et dolore magnam aliquam quaerat voluptatem (etc...)

If this option is set in .prettierrc: "printWidth": 80

Then the text should be wrapped accordingly:

Feature: lorem ipsum

    Dolor sit amet consectetur qui dolorem ipsum, quia dolor sit amet
    consectetur adipisci velit, sed quia non numquam eius modi tempora
    incidunt, ut labore et dolore magnam aliquam quaerat voluptatem (etc...)

P.S. thank you for this very useful plugin :-)

Thank you and nice catch!

@lcrespom released as 2.4.0