Skip to content

Gitlab MR link broken if there are carriage returns #3999

@ginolegigot

Description

@ginolegigot

Hello!

Describe the bug
When a MR link is cut in several pieces because there are Carrriage Returns, the MR link appears clickable only on the first part

To Reproduce
Steps to reproduce the behavior:

Open lazygit in a small window, Push in a new branch, the MR link will be suggested. If the window is small enough the MR Link will be separated into several parts through line return. only the first part of the MR link will e clickable leading to a broken link in the browser

Expected behavior
The whole MR link remains clickable even if they are carriage returns.

Screenshots
test
In the screenshot only the part with https://gitlab is clickable the rest of the link is not.

Version info:
commit=611fabde11d24d9acc71ee26077b9a1101f59f27, build date=2024-09-18T10:56:10Z, build source=binaryRelease, version=0.44.1, os=linux, arch=amd64, git version=2.43.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions