JBehave
  1. JBehave
  2. JBEHAVE-964

HTML contains double escaped characters when outputting table text from input story file

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.8
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Windows 7 64-bit, Java 7-Update 21, Intel Core i5.
    • Number of attachments :
      0

      Description

      When writing stories that contain example tables with Māori macrons, there seems to be some double escaping of these characters happening in the output HTML files.

      For Example, given the following scenario:
      Scenario: Māori Macron support
      Given some condition
      When I do something
      Then I expect to see a macron in the HTML table below:

      Example-Title
      Māori macron should show on this line

      ample-Title
      I would expect the characters to render as seen in the text file, however I see the following in the HTML output:

      Then I expect to see a macron in the HTML table below:
      Ex
      Māori macron should show on this line

      ā is the escape character for this particular macron, and the HTML source for this line shows the double escape:
      <tr><td>M&#257;ori macron should show on this line</td></tr>

        Activity

        Gerard Ryan made changes -
        Field Original Value New Value
        Description When writing stories that contain example tables with Māori macrons, there seems to be some double escaping of these characters happening in the output HTML files.

        For Example, given the following scenario:
        Scenario: Māori Macron support
        Given some condition
        When I do something
        Then I expect to see a macron in the HTML table below:
        |Example-Title|
        |Māori macron should show on this line|

        I would expect the characters to render as seen in the text file, however I see the following in the HTML output:

        Then I expect to see a macron in the HTML table below:
        Example-Title
        M&amp;#257;ori macron should show on this line

        &#257; is the escape character for this particular macron, and the HTML source for this line shows the double escape:
        <tr><td>M&amp;#257;ori macron should show on this line</td></tr>

        When writing stories that contain example tables with Māori macrons, there seems to be some double escaping of these characters happening in the output HTML files.

        For Example, given the following scenario:
        Scenario: Māori Macron support
        Given some condition
        When I do something
        Then I expect to see a macron in the HTML table below:
        |Example-Title|
        |Māori macron should show on this line|
        ample-Title
        I would expect the characters to render as seen in the text file, however I see the following in the HTML output:

        Then I expect to see a macron in the HTML table below:
        Ex
        M&amp;#257;ori macron should show on this line

        &#257; is the escape character for this particular macron, and the HTML source for this line shows the double escape:
        <tr><td>M&amp;#257;ori macron should show on this line</td></tr>

          People

          • Assignee:
            Unassigned
            Reporter:
            Gerard Ryan
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: