Variants documentation is misleading wrt whitespace

Description

On the pattern variants documentation page http://jbehave.org/reference/stable/pattern-variants.html the example is misleading regarding whitespace placement for optional expressions. The example currently reads:

Notice the white space between `{item|}` and `{price|...}`. The intention is to show optional parts in the expression. However, in this form leaving out the word `item` would require two consecutive spaces for the step to be identified (one after "the" and one before "price").

The example should read:

and maybe include a note in the text below it:

Notice that the word "item" becomes effectively optional in this example. However, make sure to include the space following it in the variant to prevent the resulting step from containing multiple consecutive spaces!

Assignee

Unassigned

Reporter

Daniel Schneller

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure