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

Mauro Talevi commented on JBEHAVE-371:
--------------------------------------

It's actually trivial to not trim the table cells, but the real point is that 
most users would find that less useful or annoying to have to trim it 
themselves.  We need to find a way to support multiple parsing modes, whist 
using the same parser (the ExamplesTable model class).

Some optional parsing meta info before the table data might do the trick, 
identified as anything in [] before first header separator.  E.g.: 

{code}
[trim=false]
| |A | B | C|
| |X | Y | Z|
{code}

Then we could also add other directives, e.g. for the default sorting of the 
data.  


> Leading and trailing spaces in example table cells are removed
> --------------------------------------------------------------
>
>                 Key: JBEHAVE-371
>                 URL: http://jira.codehaus.org/browse/JBEHAVE-371
>             Project: JBehave
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 3.0.3
>            Reporter: Frank Grimm
>            Priority: Minor
>
> In JBehave Core 3.0.3 all leading and trailing spaces are removed from 
> example table cells.
> For example, when accessed through the ExamplesTable API (the following table
> {code}
> | |A | B | C|
> | |X | Y | Z|
> {code}
> becomes
> {code}
> ||A|B|C|
> ||X|Y|Z|
> {code}
> Leading/trailing spaces were not removed for JBehave Core versions older than 
> 3.0.3. So, it might be a regression cause when this 
> http://jira.codehaus.org/browse/JBEHAVE-353 was fixed.
> At least for me it would be nice to be able to use example tables containing 
> cells with leading/trailing spaces.

-- 
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