Skip to content

Replace single line break with double line break for commit description in git blame hover popup #245779

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

huntertran
Copy link

Fix issue #245773

By design, markdown ignores single line break \n.
This behavior makes the git blame popup on mouse hover display a single line description for all the texts that has single line break. These line breaks display correctly on Github.com and on most of the git clients.

This fix replaces all the variances of line break (\r, \n, \r\n and \n\n) with double line break \n\n, so the markdown correctly displays line break in the popup

@huntertran huntertran requested a review from lszomoru April 9, 2025 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants