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

Uploaded caption text is initially displayed without linefeeds #3731

Closed
lightaffaire opened this issue Nov 8, 2022 · 8 comments
Closed

Uploaded caption text is initially displayed without linefeeds #3731

lightaffaire opened this issue Nov 8, 2022 · 8 comments

Comments

@lightaffaire
Copy link

lightaffaire commented Nov 8, 2022

When I upload an image with caption text via the webpage dialog the caption text is initially displayed without linefeeds that are present in the upload caption text.

A browser reload (F5) will then display the caption text correctly.

UPDATE: latest post to my profile is still unformatted after numerous refreshes:

pixelfed-now-broken

UPDATE #2: I checked back 4 hours later and did a browser refresh. Now the caption text is correctly formatted.

Attached screenshots showing the problem:

pixelfed-just-posted
pixelfed-after-f5-or browser-refresh

@ArcEdge
Copy link

ArcEdge commented Nov 11, 2022

I am running into the same issue, or a very similar issue. It seems like one out of every five or six attempts to upload an image with formatting and linebreaks actually goes through successfully, and that Pixelfed just eats my line breaks on the other attempts. I haven't noticed any of the formatting re-appearing upon refresh attempts.

@lightaffaire
Copy link
Author

For me it is every upload. Manual refresh after upload no longer has any effect works BUT 1-4 hours later the formatting seems to be corrected. Is there some kind of lazy update process running across new uploads is my currect thought?

@twatzl
Copy link

twatzl commented Dec 2, 2022

This is probably connected: If I use shift+enter in the caption text dialog the linefeeds are not displayed, but if I write the text first in VSCode and then copy it to the caption box then the linefeeds are working.

image

image

After 15 minutes there was no change. Will try again in a couple of hours.

Edit: Now after ~ 30 minutes the post which was formatted in the web ui is now also correctly displayed:
image

@jim-easterbrook
Copy link

jim-easterbrook commented Jan 28, 2023

I've just run into this (or a problem like it) when posting via the Mastodon.py Python package. It hadn't occurred to me to wait after posting to see if it reformats itself correctly. Time for more testing...

1 hour later: Still no line breaks on pixelfed, but the same post showed correctly immediately when viewed from Mastodon.

@jim-easterbrook
Copy link

I've just discovered that if I have a post that is missing line breaks I just have to "like" it, and then "unlike" it, to make it display properly.

@lightaffaire
Copy link
Author

@jim-easterbrook i just tried your like plus unlike 'hack' and yes it does correctly format with linefeeds.

Would be great to get this fixed @dansup

@jim-easterbrook
Copy link

jim-easterbrook commented May 6, 2023

It appears that v0.11.6 breaks this 'hack'. I now can't get posts to display the line feeds.

[Edit: I've found this was a problem with my uploader software. The 'hack' is still there.]

@trwnh trwnh closed this as not planned Won't fix, can't repro, duplicate, stale May 31, 2024
@trwnh
Copy link
Member

trwnh commented Jun 2, 2024

Duplicate of #3909

@trwnh trwnh marked this as a duplicate of #3909 Jun 2, 2024
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

No branches or pull requests

5 participants