thunder-app / thunder

Thunder - An open-source cross-platform Lemmy client for iOS and Android built with Flutter
https://thunderapp.dev
GNU Affero General Public License v3.0
796 stars 69 forks source link

Superscripts appear to be intermittently introducing a line break. #1618

Closed K4LCIFER closed 19 hours ago

K4LCIFER commented 19 hours ago

Bug Description

If you use a superscript in text, for some reason a line break is added right before and right after in thunder (this doesn't happen in the regular Lemmy UI). That's not to say that Thunder changes the text itself to add a line break, but it renders it as if there were a line break right after the superscript.

For example here's 3 examples where it appears to happen intermittently both before and after, just before, just after, or not at all. Screenshot_20241202-153202 [source] Screenshot_20241202-153311 [source] Screenshot_20241202-153334 [source] Screenshot_20241202-153527 [source]

Expected Behaviour

I would expect that superscripts don't introduce a line break.

Steps to Reproduce

  1. Write some text in a post with a superscript — ie test ^superscript^ following test
  2. observe that there is a line break right after the superscript like the following:
    test ^superscript^
    following test

Additional Context

No response

App Version

0.5.1

Device

Pixel 6

OS

Android 15

K4LCIFER commented 19 hours ago

Duplicate of #1196.