Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I escape the pipe in specflow (or gherkin)

I've got a specflow step table that I want to have the | (pipe) character as a part of the content.

Example:

Then the data should be     | Field     | Value  |     | SomeField | a|b|c  | 

But this doesn't work. How can I escape the pipe character?

like image 807
viggity Avatar asked Oct 18 '12 17:10

viggity


1 Answers

Bah. I can't believe I didn't find this earlier. You CAN escape a pipe with the backslash, but the specflow syntax highlighter gets confused by it.

Then the data should be     | Field     | Value    |     | SomeField | a\|b\|c  | 
like image 151
viggity Avatar answered Nov 12 '22 17:11

viggity