cucumber / gherkin-utils

API for working with Gherkin documents
MIT License
9 stars 4 forks source link

Formatter removes malformed tables #78

Open pkufranky opened 1 year ago

pkufranky commented 1 year ago

👓 What did you see?

Examples: | foo | bar | | 1 |

After formating, it becomes Examples:

✅ What did you expect to see?

It should not remove anything when formatting.

📦 Which tool/library version are you using?

vscode cucumber extension, v1.2.8

🔬 How could we reproduce it?

In vscode, use cucumber as formatter for .feature file. Enter the invalid table and save, table is removed.

📚 Any additional context?


This text was originally generated from a template, then edited by hand. You can modify the template here.

niccolomineo commented 1 year ago

I agree with the OP and I'd like to add it is a quite serious issue at the moment.

aslakhellesoy commented 1 year ago

Moved to https://github.com/cucumber/gherkin-utils/issues/78

aslakhellesoy commented 1 year ago

@pkufranky @niccolomineo thanks for reporting this. If this is important to you, please consider contributing a fix yourself.

The formatting fucntionality is implemented in this file.