JBehave
  1. JBehave
  2. JBEHAVE-122

Newline escape has the wrong order of \n\r

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Not A Bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      CandidateStep

      value.replaceAll("(\n)|(\r\n)", System.getProperty("line.separator"));

      must be:
      value.replaceAll("(\n)|(\n\r)", System.getProperty("line.separator"));

        Activity

        Hide
        Elizabeth Keogh added a comment -

        I tried this, and it didn't work (failed on my Windows machine, anyway). See: http://en.wikipedia.org/wiki/Newline - \r\n appears to be right.

        If for some reason it's failing for you, please could you output the stack trace, including the text from the failing expectation?

        Thanks!

        Show
        Elizabeth Keogh added a comment - I tried this, and it didn't work (failed on my Windows machine, anyway). See: http://en.wikipedia.org/wiki/Newline - \r\n appears to be right. If for some reason it's failing for you, please could you output the stack trace, including the text from the failing expectation? Thanks!
        Elizabeth Keogh made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Not A Bug [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Michael Hunger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: