woodpecker-ci / woodpecker

Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
4.16k stars 359 forks source link

There is no line breaks in the Step logs #3790

Closed zc-devs closed 3 months ago

zc-devs commented 3 months ago

Component

server, web-ui

Describe the bug

Downloaded or copy-pasted logs do not have line breaks, appear as one line.

Steps to reproduce

  1. Install Woodpecker 2.6.0.
  2. Run pipeline
    skip_clone: true
    steps:
    server:
    image: alpine
    commands:
      - echo Hello
      - echo world
  3. See logs in UI Screenshot 2024-06-14 200009
  4. Download logs usr-wp-test-324-server.log
  5. Copy logs from UI and paste in some text editor
  6. Check, that downloaded logs and copy-pasted one are one-line text
    + echo HelloHello+ echo worldworld

Expected behavior

  1. Install Woodpecker 2.5.0.
  2. Run pipeline
    skip_clone: true
    steps:
    server:
    image: alpine
    commands:
      - echo Hello
      - echo world
  3. See logs in UI Screenshot 2024-06-14 195449
  4. Download logs usr-wp-test-323-server.log
  5. Copy logs from UI and paste in some text editor
  6. Check, that downloaded logs and copy-pasted one are multiple lines
    + echo Hello
    Hello
    + echo world
    world

System Info

Woodpecker 2.6.0, Kubernetes.

Additional context

No response

Validations