Skip to content

Broken render of some SVGs in diff page #35863

@didim99

Description

@didim99

Description

Some SVGs rendered as empty line in commit/PR/diff page, but at file view page shows as expected. I have no idea what the difference, but this behaviour affects many our custom SVGs exported form Adobe Illustrator. See example at this PR: https://demo.gitea.com/didim99/test/pulls/6/files
File nonascii.svg rendered as expected, but off.svg is broken. off.svg is rendered normally on file view page: https://demo.gitea.com/didim99/test/src/branch/svg-test/svg/off.svg

Gitea Version

1.24.4 to 1.26.0+dev-105-g685c8c314f

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

Image

Git Version

Not matters

Operating System

Not matters

How are you running Gitea?

Using demo.gitea.com, self-hosted

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detailtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions