Infinity-For-Reddit icon indicating copy to clipboard operation
Infinity-For-Reddit copied to clipboard

Leading and trailing spaces are not removed inside spoilers

Open tabasavr opened this issue 3 years ago • 3 comments

Checklist

  • [X] I have used the search function for open and closed issues to see if someone else has already submitted the same bug report.
  • [X] I will describe the problem with as much detail as possible.
  • [X] If the bug only occurs with a certain link, post, image..., I will include the URL.

App version

5.3.2

Where did you get the app from

Google Play

Android version

12

Device model

No response

First occurred

No response

Steps to reproduce

Create post/comment with contents:

>!    text    !<

Expected behaviour

Spoiler matches text width exactly

Current behaviour

There is extra space inside the spoiler around text

Logs

Notes

Reddit has some weird whitespace processing because >! text !< other has trailing space inside spoiler, while other >! text !< doesn't have leading space

tabasavr avatar Sep 17 '22 08:09 tabasavr

It seems that you are really obsessed with the markdown bugs 🙂, but thanks go on. Soon we will have the best markdown parser in the world 👌😅

Wladefant avatar Sep 17 '22 09:09 Wladefant

Honestly, I just have too much free time right now 😆. But I do enjoy figuring out these bugs and every time I fix one I spot something else, so it's difficult to stop.

Btw this issue won't be fixed by the pr that is open now, I opened it for the future

tabasavr avatar Sep 17 '22 12:09 tabasavr

Oh all right haven't read it carefully enough

Wladefant avatar Sep 17 '22 13:09 Wladefant