mapado / prettier-plugin-gherkin

This prettier plugin format your gherkin (`.feature` files) documents.
MIT License
18 stars 5 forks source link

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

Closed lcrespom closed 4 months ago

lcrespom commented 5 months ago

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 :-)

jdeniau commented 5 months ago

Thank you and nice catch!

jdeniau commented 4 months ago

@lcrespom released as 2.4.0

lcrespom commented 4 months ago

Thank you very much. I checked it and it works.

Regards, Luis.

On Fri, Jul 5, 2024 at 11:35 AM Julien Deniau @.***> wrote:

@lcrespom https://github.com/lcrespom released as 2.4.0

— Reply to this email directly, view it on GitHub https://github.com/mapado/prettier-plugin-gherkin/issues/22#issuecomment-2210543510, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGFHEQ67ZKJGOWDLMFXFXTZKZSG3AVCNFSM6AAAAABKI6KPMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJQGU2DGNJRGA . You are receiving this because you were mentioned.Message ID: @.***>