From f98d043eeffd1bb4c7e542085876dd66f3918726 Mon Sep 17 00:00:00 2001 From: Christian Hujer Date: Wed, 26 May 2021 08:45:46 +0530 Subject: [PATCH] Fix for #622 by copying the corresponding documentation from the Gherkin specification. --- content/docs/gherkin/reference.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/content/docs/gherkin/reference.md b/content/docs/gherkin/reference.md index dcc0b3b7..37e1e8e4 100644 --- a/content/docs/gherkin/reference.md +++ b/content/docs/gherkin/reference.md @@ -480,6 +480,14 @@ Given the following users exist: ``` Just like `Doc Strings`, `Data Tables` will be passed to the step definition as the last argument. +### Table Cell Escaping + +If you want to use a newline character in a table cell, you can write this +as `\n`. If you need a `|` as part of the cell, you can escape it as `\|`. And +finally, if you need a `\`, you can escape that with `\\`. + +### Data Table API + Cucumber provides a rich API for manipulating tables from within step definitions. See the [Data Table API reference](https://github.com/cucumber/cucumber/tree/master/datatable) reference for more details.