Details
Description
We'd like to be able to include comments in tables to make scenarios clearer, but JBehave refuses to read in the lines after the comment in this example, leading to zero rows being created in the resulting ExamplesTable.
Given the documents:
a | b | c |
– I'd like to have a comment here – | ||
1 | 2 | 3 |
4 | 5 | 6 |
1 | 2 | 3 |
I've tried a small test with 2.5.9 and 3.0 of JBehave but they don't fix the problem.
Activity

Field | Original Value | New Value |
---|---|---|
Summary | Table parsing stops when a comment is found | Allow comments in tables |
Issue Type | Bug [ 1 ] | Improvement [ 4 ] |
Fix Version/s | 3.0.3 [ 16775 ] | |
Component/s | Core [ 11086 ] |

Description |
We'd like to be able to include comments in tables to make scenarios clearer, but JBehave refuses to read in the lines after the comment in this example, leading to zero rows being created in the resulting ExamplesTable.
Given the documents: |a|b|c| !-- I'd like to have a comment here |1|2|3| |4|5|6| |1|2|3| I've tried a small test with 2.5.9 and 3.0 of JBehave but they don't fix the problem. |
We'd like to be able to include comments in tables to make scenarios clearer, but JBehave refuses to read in the lines after the comment in this example, leading to zero rows being created in the resulting ExamplesTable.
Given the documents: |a|b|c| |-- I'd like to have a comment here --| |1|2|3| |4|5|6| |1|2|3| I've tried a small test with 2.5.9 and 3.0 of JBehave but they don't fix the problem. |

Assignee | Mauro Talevi [ maurotalevi ] |

Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Added separator "|--" to ignore table rows in parsing. Separator is configurable via Keywords as other example table's separators.