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

Newlines are removed from doc strings #60

Closed
deyanp opened this issue Jul 27, 2022 · 2 comments
Closed

Newlines are removed from doc strings #60

deyanp opened this issue Jul 27, 2022 · 2 comments

Comments

@deyanp
Copy link
Contributor

deyanp commented Jul 27, 2022

It seems Tickspec is filtering out all empty lines in a doc string, e.g.

...
Then the generated file has the following content
"""
line1

line3

line5

"""

The resulting argument passed to the Then step looks like

line1
line3
line5

Can you pls confirm this is a bug in TickSpec (Gherkin seems to preserve newlines in doc strings) ?

@bartelink
Copy link
Member

Can't think of a good reason to strip them; perhaps the original intent was to strip ones at top and tail? (Can't think of a particularly good reason for that either)

@mchaloupka mchaloupka added this to the v2.0.3 Release milestone Jul 30, 2022
@mchaloupka
Copy link
Collaborator

The original idea was to remove all empty lines to simplify parsing. I don't think that there was no intention to remove empty lines from doc strings.

Created pull requests: #62

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

No branches or pull requests

3 participants