[ 
http://jira.codehaus.org/browse/JBEHAVE-338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235540#action_235540
 ] 

Paul Hammant commented on JBEHAVE-338:
--------------------------------------

Au contraire, we could regex for whitespace at the start of a line, **before** 
we do any other regex for G/W/T (etc):

For (multiline):

^[\x20\x09]+[^\s]

On:

|hello
|  how are
|you
|
|today?

It will find the space-space-h sequence and nothing else.

:)

> Indented scenarios in stories was possible in JB2 but after upgrade failed in 
> JB3
> ---------------------------------------------------------------------------------
>
>                 Key: JBEHAVE-338
>                 URL: http://jira.codehaus.org/browse/JBEHAVE-338
>             Project: JBehave
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 3.0
>         Environment: Windows
>            Reporter: Paul Hammant
>            Priority: Minor
>
> A client had indented JB scenarios (tabs and/or spaces) in the .scenario 
> files.  When upgraded to JB3, and everything else was working for the renamed 
> .story files. the scenarios were not being executed.  It seems regex made no 
> match.
> We had breakpoints in place so we could see the BeforeScenario being invoked, 
> but none of the steps. When we removed the left-whitespace, it worked.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to