Skip to content

Cross-repo commit reference gobbles up whitespace #22666

Closed
@drsybren

Description

@drsybren

Description

#22645 introduced cross-repository commit links. However, it has a bug in that whitespace around the reference is not rendered.

This input:

This issue was referenced by archive/flamenco-manager@a6e5900f0982217a7767b1ef1b42e49a4c29db01 at some point

Produces this output:

<p>This issue was referenced by<a href="/archive/flamenco-manager/commit/a6e5900f0982217a7767b1ef1b42e49a4c29db01" rel="nofollow">archive/flamenco-manager@a6e5900f09</a>at some point</p>

As you can see, there should be a space between by<a and also between </a>at.

Gitea Version

1b53a9e

Can you reproduce the bug on the Gitea demo site?

No, demo site is too old, doesn't have this feature yet. If it gets upgraded, then check https://try.gitea.io/drSybren/demo/issues/2

Screenshots

image

How are you running Gitea?

Self-built from Git.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions