JBehave
  1. JBehave
  2. JBEHAVE-255

Make column separator configurable in ExamplesTable

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      When trying to read from external sources, like a wiki, some characters like "|" may be reserved and we need to allow for use of others.

      The parser should allow configuration of other column separators when parsing tables.

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Assignee Mauro Talevi [ maurotalevi ]
        Hide
        Mauro Talevi added a comment -

        Made table column separator configurable. Parser retrieves configuration via keywords, like any other configurable element used in parsing.

        Updated i18n trader example to show it in action.

        Show
        Mauro Talevi added a comment - Made table column separator configurable. Parser retrieves configuration via keywords, like any other configurable element used in parsing. Updated i18n trader example to show it in action.
        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Cristiano Gavião added a comment -

        Mauro, you have missed a little detail....:
        Confluence(wiki) and Jira use both characters: "||" and "|" to build tables. The first one is used for render header cell and the second one for normal cell, look at a table in jira:

        field a field b
        value a value b

        regards

        Show
        Cristiano Gavião added a comment - Mauro, you have missed a little detail....: Confluence(wiki) and Jira use both characters: "||" and "|" to build tables. The first one is used for render header cell and the second one for normal cell, look at a table in jira: field a field b value a value b regards
        Hide
        Mauro Talevi added a comment - - edited

        Need to distinguish between header and value separators.

        Show
        Mauro Talevi added a comment - - edited Need to distinguish between header and value separators.
        Mauro Talevi made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Hide
        Mauro Talevi added a comment -

        ExamplesTable now accepts as distinct parameters the header and value separators, which both default to "|".

        The separators are also configurable via keywords.

        Show
        Mauro Talevi added a comment - ExamplesTable now accepts as distinct parameters the header and value separators, which both default to "|". The separators are also configurable via keywords.
        Mauro Talevi made changes -
        Resolution Fixed [ 1 ]
        Status Reopened [ 4 ] Resolved [ 5 ]

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            Mauro Talevi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: