Skip to content
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

Prevent empty div when editing comment #12404

Merged

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented Aug 1, 2020

The template for attachments needs to remove whitespace and return an empty response when there are no attachments.

Fix #10220

Signed-off-by: Andrew Thornton art27@cantab.net

The template for attachments needs to remove whitespace and return empty when there are no attachments.

Fix go-gitea#10220

Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
@zeripath zeripath added this to the 1.13.0 milestone Aug 1, 2020
@zeripath
Copy link
Contributor Author

zeripath commented Aug 1, 2020

Could be backported to v1.12

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 1, 2020
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Aug 2, 2020
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Aug 4, 2020
@6543
Copy link
Member

6543 commented Aug 4, 2020

for everybody who like to have the documentation of the template changes:
https://golang.org/pkg/text/template/#hdr-Text_and_spaces

@zeripath
Copy link
Contributor Author

zeripath commented Aug 4, 2020

make lg-tm work

@zeripath zeripath merged commit 33391e0 into go-gitea:master Aug 4, 2020
@zeripath zeripath deleted the fix-10220-no-empty-attachments-div branch August 4, 2020 21:30
techknowlogick pushed a commit to techknowlogick/gitea that referenced this pull request Sep 30, 2020
* Prevent empty div when editing comment

The template for attachments needs to remove whitespace and return empty when there are no attachments.

Fix go-gitea#10220
6543 pushed a commit to 6543-forks/gitea that referenced this pull request Sep 30, 2020
* Prevent empty div when editing comment

The template for attachments needs to remove whitespace and return empty when there are no attachments.

Fix go-gitea#10220
@6543
Copy link
Member

6543 commented Sep 30, 2020

backport: #12992

@6543 6543 added the backport/done All backports for this PR have been created label Sep 30, 2020
lunny pushed a commit that referenced this pull request Oct 1, 2020
* Prevent empty div when editing comment

The template for attachments needs to remove whitespace and return empty when there are no attachments.

Fix #10220

Co-authored-by: zeripath <art27@cantab.net>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Editing comment leaves empty div segment
6 participants