How to escape '|' character in JBehave

Viewed 212

I'm using JBehave 4.0.5

I need to escape the pipeline(|) from the JBehave tabular parameter verification.

As per this answer from Stack Overflow, In Cucumber we can use '\|' to escape the pipeline on tabular verification, but i couldn't find one for JBehave.

EX:

|Key 1      |Key 2  |
| |value 1| |value 2|
| |value 3| |value 4|
1 Answers

JBehave allows to specify custom separators for ExamplesTable-s: Tabular Parameters > Specifying inlined separators.

{headerSeparator=!,valueSeparator=!}
!Key 1      !Key 2  !
! |value 1| !value 2!
! |value 3| !value 4!
Related