Hide Details applies separately

This bug has to be re-open: Hide Details applies separately to each paragraph.

Reproduction

  1. Write several lines of text (separate with linebreak)
  2. Choose all the lines.
  3. Click Hide Details.
  4. PROFIT

Tested here, right now:

Summary

Paragraph 1: text text and more text

Summary

Paragraph 2: text text and more text

Summary

Paragraph 3: text text and more text

Summary

Paragraph 4: text text and more text


I checked the PR that solved this bug before, and I think it’s a regression.
Check this out: https://github.com/discourse/discourse/pull/4499/files cc. @tgxworld

4 Likes

Just to clarify, the implementation of hide details is fine, the bug is in the toolbar button.

5 Likes

Let’s see

line 1
line 2
line 3

Summary

line 1
line 2
line 3

line 1

line 2

line 3

Summary

line 1

line 2

line 3

Both look fine to me?

3 Likes

Agree this looks fixed now, closing @SidV flag if you still notice an issue.

2 Likes