Hi, 

you are right that better normalisation of whitespace would be useful. 

Feel free to create a JIRA issue with a patch for this. 

Not sure what you mean by a global property for backward compatibility.   

Cheers

> On 1 Nov 2016, at 22:13, Hank R. <h...@werx.io> wrote:
> 
> Hello, 
> 
> I hoped to use patterns to provide some flexibility to our project managers 
> that would allow them to use first or second person, or none at all. For 
> example:
> 
> When the user clicks the button
> Then you click the button
> Then click the button
> 
> I wanted for all of the above to match the same class:
> 
> @Step
> @When("{you|the user|} click{s|} the button")
> @Then("{you|the user|} click{s|} the button")
> public void ClickTheButton() {
> }
> 
> What I discovered is that leading whitespace is significant, so the above 
> would never match "Then click the button" but would match "Then you click the 
> button"
> 
> I don't see a use case for whitespace being significant and assumed it was 
> normalized -- leading and trailing whitespace removed and all other 
> whitespace reduced to a single space character.
> 
> At this point maybe only a global property would provide backward 
> compatibility. 
> 
> Any thoughts? 
> 
> Thank you,
> Hank
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "JBehave User" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jbehave-user+unsubscr...@googlegroups.com 
> <mailto:jbehave-user+unsubscr...@googlegroups.com>.
> To post to this group, send email to jbehave-user@googlegroups.com 
> <mailto:jbehave-user@googlegroups.com>.
> To view this discussion on the web, visit 
> https://groups.google.com/d/msgid/jbehave-user/c002eae6-7e76-4ce7-bf5e-3f18fde0560d%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jbehave-user/c002eae6-7e76-4ce7-bf5e-3f18fde0560d%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"JBehave User" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jbehave-user+unsubscr...@googlegroups.com.
To post to this group, send an email to jbehave-user@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/jbehave-user/4D499AD4-6658-41C2-B0AF-A1C8D2FE3916%40aquilonia.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to