Gitea website does not properly display newlines in commit messages #1827

Closed
opened 2025-11-02 04:14:27 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @LouieK22 on GitHub (May 27, 2018).

Description

When a commit message contains a newline it is not displayed on the Gitea website.
...

Screenshots



The screenshots should have another line that read "WIP and Disabled"

Originally created by @LouieK22 on GitHub (May 27, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): - Git version: 773530c - Operating system: Docker on Ubuntu 16.04 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) https://try.gitea.io/LouieK22/newline-test - [ ] No - [ ] Not relevant ## Description When a commit message contains a newline it is not displayed on the Gitea website. ... ## Screenshots ![](https://i.imgur.com/OjMcEO3.png) ![](https://i.imgur.com/zxkR4ih.png) The screenshots should have another line that read "WIP and Disabled" <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/bug label 2025-11-02 04:14:28 -06:00
Author
Owner

@lafriks commented on GitHub (May 28, 2018):

Can you reproduce that on try.gitea.io?

@lafriks commented on GitHub (May 28, 2018): Can you reproduce that on try.gitea.io?
Author
Owner

@LouieK22 commented on GitHub (May 28, 2018):

Yes

@LouieK22 commented on GitHub (May 28, 2018): Yes ![](https://i.imgur.com/aPAeEzZ.png)
Author
Owner

@lunny commented on GitHub (May 28, 2018):

It's some critical, so I moved it to v1.5.0 and added backport

@lunny commented on GitHub (May 28, 2018): It's some critical, so I moved it to v1.5.0 and added backport
Author
Owner

@sondr3 commented on GitHub (May 30, 2018):

This might be related to my expandable commit bodies PR, are the lines separated by a \n or something else? Cause I forgot that Windows for example does new lines differently than Linux, so it might be a editor issue.

On second though, this is likely related to the above but more because you didn’t split the lines apart by a double new line. I’m in the middle of my exams so I won’t be able to test myself for a week or so, but if it still is an issue I’ll take a look.

@sondr3 commented on GitHub (May 30, 2018): This might be related to my expandable commit bodies PR, are the lines separated by a `\n` or something else? Cause I forgot that Windows for example does new lines differently than Linux, so it might be a editor issue. On second though, this is likely related to the above but more because you didn’t split the lines apart by a double new line. I’m in the middle of my exams so I won’t be able to test myself for a week or so, but if it still is an issue I’ll take a look.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1827