antham / ghokin

Parallelized formatter with no external dependencies for gherkin (cucumber, behat...)
MIT License
43 stars 5 forks source link

Escaped pipe being formatted to invalid value #50

Closed adrianduke closed 3 years ago

adrianduke commented 3 years ago

I've got a situation where I need to use a | in a table value. Godog accepts a \| as an escape sequence for the pipe, but Ghokin replaces it with |, breaking godog and cucumber.js:

Input:

Feature: Test

    Scenario: Pipe in table value
        Given I have a table:
            | a | b \| c |

Output:

Feature: Test

  Scenario: Pipe in table value
    Given I have a table:
      | a | b | c |

Expected:

Feature: Test

  Scenario: Pipe in table value
    Given I have a table:
      | a | b \| c |
antham commented 3 years ago

Hi, thanks for reporting check out https://github.com/antham/ghokin/releases/tag/v1.6.1