Skip to content

Copying text from source code view/diff view adds or removes newlines #12184

@CirnoT

Description

@CirnoT
Contributor
  • Gitea version (or commit ref): dbd5e4b
  • Git version: gitea:latest
  • Operating system: gitea:latest
  • Database (use [x]):
    • PostgreSQL
      MySQL
      MSSQL
      SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
      No
      Not relevant

Description

Copying selected chunk of text from source code/diff view either removes all newlines or produces additional ones when unnecessary. Removal happens on Chromium, while on Firefox newlines are added.

Screenshots

https://try.gitea.io/L0veSunshine/drone-gitea-release/src/branch/master/Dockerfile.arm

Original:
chrome_2020-07-08_13-43-12

Firefox:

FROM plugins/base:multiarch

LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" \

  org.label-schema.name="Drone Gitea Release" \

  org.label-schema.vendor="Drone.IO Community" \

  org.label-schema.schema-version="1.0"

ADD release/linux/arm/drone-gitea-release /bin/

ENTRYPOINT [ "/bin/drone-gitea-release" ]

Chromium:

FROM plugins/base:multiarch
LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" \
  org.label-schema.name="Drone Gitea Release" \
  org.label-schema.vendor="Drone.IO Community" \
  org.label-schema.schema-version="1.0"
ADD release/linux/arm/drone-gitea-release /bin/
ENTRYPOINT [ "/bin/drone-gitea-release" ]

Activity

silverwind

silverwind commented on Jul 8, 2020

@silverwind
Member

Also noticed this, it's a regression from #12047.

added a commit that references this issue on Jul 8, 2020
4620c82
mrsdizzie

mrsdizzie commented on Jul 8, 2020

@mrsdizzie
Member

Added PR that should fix this if anybody can test

added a commit that references this issue on Jul 8, 2020
a6168fa
locked and limited conversation to collaborators on Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @lunny@silverwind@CirnoT@mrsdizzie

      Issue actions

        Copying text from source code view/diff view adds or removes newlines · Issue #12184 · go-gitea/gitea