Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add forceNewlineBetweenStepBlocks option #16

Merged
merged 5 commits into from
Dec 28, 2023
Merged

Conversation

jdeniau
Copy link
Member

@jdeniau jdeniau commented Dec 28, 2023

Do not force blank lines between steps block by default, but give the possibility to do so with a configuration option.

Given the following block

Given foo
When bar

Before this modification, the output is:

Given foo

When bar

With the new default option, the output will be:

Given foo
When bar

If the input does contain a blank line (or more), the output will keep the blank line:

# input
Given foo

When bar

# output
Given foo

When bar

Fixes #15

TODO

  • test both options
  • activate option by default

@jdeniau jdeniau changed the title Add forceHardlineBetweenSteps option Add forceNewlineBetweenStepBlocks option Dec 28, 2023
with the same value as default has not been changed, but will be later
for an understandable diff
@jdeniau jdeniau force-pushed the force-hardline-between-steps branch from 5a85545 to b7ccd8e Compare December 28, 2023 14:45
@jdeniau jdeniau marked this pull request as ready for review December 28, 2023 14:46
@jdeniau jdeniau merged commit 58692ff into main Dec 28, 2023
3 checks passed
@jdeniau jdeniau deleted the force-hardline-between-steps branch December 28, 2023 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is there a reason to add a blank line after a given?
1 participant