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

Full Log does not render newlines - or use correct content type (weird HTML like artifacts)

    • iapetus

      Scope

      • Force text/plain content type on full log endpoint

      Original Request
      When displaying the full log for a step, e.g. at https://jenkins.my-domain.com/blue/rest/organizations/jenkins/pipelines/Org/project/branches/master/runs/90/log/?start=0, the log is rendered as HTML with colors, anchors, etc., but line breaks are not renders as <br />.

      That's fine to do, but if so, the body should have a `style="white-space: pre-wrap"` or you end up with an enormous wall of unbroken text.

          [JENKINS-39521] Full Log does not render newlines - or use correct content type (weird HTML like artifacts)

          Samuel Reed created issue -
          James Dumay made changes -
          Epic Link New: JENKINS-35750 [ 171713 ]

          James Dumay added a comment -

          Thanks for the report strml. Would you happen to have a screenshot you could share of the log?

          James Dumay added a comment - Thanks for the report strml . Would you happen to have a screenshot you could share of the log?
          Samuel Reed made changes -
          Attachment New: Screen Shot 2016-11-06 at 5.13.08 PM.png [ 34741 ]

          Samuel Reed added a comment -

          Sure, here's a snippet. It may be important that I am using the AnsiColor and Timestamper plugins.

          Samuel Reed added a comment - Sure, here's a snippet. It may be important that I am using the AnsiColor and Timestamper plugins.
          Samuel Reed made changes -
          Attachment New: Screen Shot 2016-11-06 at 5.15.33 PM.png [ 34742 ]

          Samuel Reed added a comment -

          The same with `white-space: pre-wrap` on the body:

          Samuel Reed added a comment - The same with `white-space: pre-wrap` on the body:

          James Dumay added a comment -

          strml thanks. I think at some point this change stopped applying https://github.com/jenkinsci/jenkins-design-language/pull/95/files

          tscherler can you confirm please?

          James Dumay added a comment - strml thanks. I think at some point this change stopped applying https://github.com/jenkinsci/jenkins-design-language/pull/95/files tscherler can you confirm please?
          James Dumay made changes -
          Assignee New: Thorsten Scherler [ tscherler ]
          James Dumay made changes -
          Sprint New: arctic [ 131 ]

            imeredith Ivan Meredith
            strml Samuel Reed
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: