Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-3566

Source renderer drops \n and \r (possibly others)

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: cobertura-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      I have some Java code that looks like this:

      if ( foo.endsWith( "\n" ) ) ...

      When rendered in the source view for the Cobertura plugin, I see only:

      if ( foo.endsWith( "" ) ) ...

      Seems like there's some overly aggressive encoding going on there.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/plugins/cobertura/src/main/java/hudson/plugins/cobertura/renderers/SourceCodePainter.java
          http://jenkins-ci.org/commit/29380
          Log:
          [FIXED JENKINS-3566] strip actual newline/cr characters in source renderer,
          not literal "\n" or "\r" in source code.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/plugins/cobertura/src/main/java/hudson/plugins/cobertura/renderers/SourceCodePainter.java http://jenkins-ci.org/commit/29380 Log: [FIXED JENKINS-3566] strip actual newline/cr characters in source renderer, not literal "\n" or "\r" in source code.

            People

            • Assignee:
              mindless Alan Harder
              Reporter:
              brandond brandond
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: