Skip to content

Newlines are stripped from notifications #1046

@EtzBetz

Description

@EtzBetz

Describe the bug

Hey, I noticed already a while ago, that when posts have linebreaks in them, they will get stripped/not forwarded into the notification. This makes the notification text look kinda clunky at times.

I guess this could be fixed at this part:

By excluding the <p> from being stripped?

To reproduce

Steps to reproduce the behavior:

  1. Get a notification, which has a line break in it
  2. Notice that the linebreak is stripped, with the end of the previous line being attached directly to the next line.

Screenshots and screen recordings

Notice in the following screenshots, the
[...] blew me awayWe might be [...]
in the notification, but in the post itself, it is
[...] blew me away
We might be [...]

Image Image

Version

Mastodon version: v2.11.4 (152)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions