Behat/Behat — Issue #99: escape symbol in TableNode
Author: tatulya
Created: 2012-02-29 13:27:51+00:00
State: open

Hello,

i've got the following problem with TableNode:

I have some strings as parameters to test which i place in the scenario in the TableNode.
These strings contain the "|"-symbol, but "|" is defined as the delimiter symbol for table columns internally.
And the parser or lexer-class identifies a string in the scenario to be a table by an "|"-symbol which can be found at the beginnig of the string.

As i see in the source code, "|" is hard coded in the lexer und TableNode classes. There is no possibility to change the preferences to choose an other symbol for the table. As well as there is no possibility to escape the "|"-symbol.

Is my conclusion correct?

I've made a fix in the code, therefore i can actually escape the "|" symbol with "\", but it would be rather helpful to have a solution for such cases in general.

Thank you for the answer,
Natalia