bluesky-social / social-app

The Bluesky Social application for Web, iOS, and Android
https://bsky.app
MIT License
11.86k stars 1.52k forks source link

intent/compose & line break #6133

Open jycouet opened 2 weeks ago

jycouet commented 2 weeks ago

Steps to Reproduce

I'm trying to have 2 lines, like this when I prepare a message https://bsky.app/intent/compose?text=

line1
line2

But on Windows & Mac doens't have the same behavior.

On Windows

<br> https://bsky.app/intent/compose?text=line1%3Cbr%3Eline2

line1
line2

\n https://bsky.app/intent/compose?text=line1%0Aline2

line1 line2

<br>\n https://bsky.app/intent/compose?text=line1%3Cbr%3E%0Aline2

line1
line2

On Mac

<br> https://bsky.app/intent/compose?text=line1%3Cbr%3Eline2

line1<br>line2

\n https://bsky.app/intent/compose?text=line1%0Aline2

line1
line2

<br>\n https://bsky.app/intent/compose?text=line1%3Cbr%3E%0Aline2

line1<br>
line2

Attachments

No response

What platform(s) does this occur on?

Web (Desktop)

Device Info

Windows & Mac

What version of the app are you using?

Build version: 1.92.1; Bundle info: dfbfcdd (prod); Bundle date: 24110420; Platform: web

Additional Information

Like to https://github.com/jycouet/jyc.dev/issues/2

saurabhdaware commented 1 week ago

For me \n does not work in mac. <br /> does 🤔

Although <br /> does not work when it's being shared to mobile app

jycouet commented 1 week ago

Hummm, so I checked only on browsers windows desktop me.

If you wanna read a bit what issue was raised on my side: https://github.com/jycouet/jyc.dev/issues/2