You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Formatting escaped_pipes.feature in the gherkin parser's test data, the following diff is produced; with escapes introduced for standalone backslashes.
- | \|æ\\n | \o\no\ |+ | \|æ\\n | \\o\no\\ |
✅ What did you expect to see?
New escape characters are not introduced.
| \|æ\\n | \o\no\ |
📦 Which tool/library version are you using?
node v18.16.0
gherkin-utils v9.0.0
🔬 How could we reproduce it?
Run the following in the gherkin parser repository
npm install @cucumber/gherkin-utilsnpx @cucumber/gherkin-utils format gherkin/testdata/good/escaped_pipes.feature
📚 Any additional context?
Unsure of appropriate behaviour in this case; and whether is desirable to be introducing these characters by the formatter. Perhaps is appropriate behaviour?
The text was updated successfully, but these errors were encountered:
Is this caused by the formatter or does the parser render the double slashes?
kieran-ryan
changed the title
Escape introduced by formatter on standalone backslashes
Formatting introduces escapes on standalone backslashes
Apr 23, 2024
kieran-ryan
changed the title
Formatting introduces escapes on standalone backslashes
Formatter introduces escapes on standalone backslashes
Apr 23, 2024
👓 What did you see?
Formatting
escaped_pipes.feature
in the gherkin parser's test data, the following diff is produced; with escapes introduced for standalone backslashes.✅ What did you expect to see?
New escape characters are not introduced.
📦 Which tool/library version are you using?
node v18.16.0
gherkin-utils v9.0.0
🔬 How could we reproduce it?
Run the following in the gherkin parser repository
📚 Any additional context?
Unsure of appropriate behaviour in this case; and whether is desirable to be introducing these characters by the formatter. Perhaps is appropriate behaviour?
The text was updated successfully, but these errors were encountered: