Skip to content

Collapsed email preview joins text across a line break without a space #5667

Description

@cameronapak

Summary

The collapsed preview of an email message removes the line breaks in the message. The preview joins the text on both sides of a line break without a space.

The expanded message keeps the line breaks and reads correctly.

Examples

Image

I saw these two examples in one thread:

  • The preview shows Hey Kyle!First,. The expanded message shows Hey Kyle! and First, on two lines.
  • The preview shows /smooth!And. The expanded message shows the two parts on two lines.

The first example is a message from me. The second example is a message from another sender.

Steps to reproduce

  1. Open an email thread in Macro.
  2. Find a message that has a line break between two parts of the text.
  3. Expand the message and read the two parts on two lines.
  4. Collapse the message.
  5. Read the preview text.

Result

The preview joins the two parts without a space.

Expected result

The preview keeps a space where the line break was:

  • Hey Kyle! First,
  • /smooth! And

Acceptance criteria

  • The preview does not join two words across a line break.
  • The preview shows one space in place of a line break.
  • The preview does not show two spaces together.
  • The expanded message does not change.

Optional idea

This section is a suggestion, not a requirement. I trust the Macro team to select the best solution for this codebase.

Change each line break to one space before the preview truncates the text.

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