Open rayjolt opened 2 years ago
The difference is whether there is a newline or not after the the scenario description. Before formatting, the scenario description is parsed as:
'A scenario description. The following line has trailing whitespace.\n'
After formatting, it is parsed as:
'A scenario description. The following line has trailing whitespace.'
Describe the bug
When attempting to format a Gherkin file in which a scenario description is followed by a blank line with trailing whitespace, reformat-gherkin gives the error "INTERNAL ERROR: The new content produced is not equivalent to the source".
To Reproduce
Steps to reproduce the behaviour
(Note that the line after the scenario description contains four spaces.)
reformat-gherkin test.feature
Expected behaviour
The file is reformatted.
Actual behaviour
The following error occurs:
The file /tmp/rfmt-ghk_nt3vy6qf.log contains the following:
Environment