Skip to content

Gherkin table auto-format escapes single backslashes #100

@vitezslav-popovsky-solarwinds

Description

Used Visual Studio

Visual Studio 2022

Are the latest Visual Studio updates installed?

Yes

Content of reqnroll.json (if present)

No response

Issue Description

When using the auto-format feature on a Gherkin table in a .feature file, the Reqenroll plugin incorrectly converts single backslashes (\) into double backslashes (\\). This behavior is incorrect for Gherkin syntax This bug reduces the readability of the specification file by adding unnecessary escape characters.

Steps to Reproduce

  1. Open a .feature file in a Visual Studio project where the Reqenroll plugin is active.
  2. Create a Gherkin scenario that includes a data table.
  3. In a cell of the table, enter a string that contains a single backslash, such as a Windows file path. For example:
| FilePath         |
| C:\Users\Test    |
  1. Trigger the document auto-format command.

Link to a project repository that reproduces the issue

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions