enchanted-sword / ch-utils

Utilities for cohost
https://cohost.org/chutils
GNU General Public License v3.0
17 stars 4 forks source link

Appearance of dropdown comments does not match comments on a post's page #6

Closed foggles17 closed 2 months ago

foggles17 commented 2 months ago

Describe the bug When you use the "X comments + Y on shared posts" dropdown to see comments without going to a post's page, the formatting does not match the standard comment formatting, specifically when they use linebreaks.

To Reproduce Steps to reproduce the behavior:

  1. go to cohost.org
  2. use the "X comments + Y on shared posts" dropdown
  3. find a comment originally written with multiple lines

Expected behavior A single line break in a comment's source normally results in a line break when the comment is displayed.

Screenshots how it appears in the comments dropdown on my timeline: image

how it appears on the post's page: image

Device information:

enchanted-sword commented 2 months ago

Whoops, looks like the wrapper wasn't set to preserve whitespace.

enchanted-sword commented 2 months ago

fixed in 6aff83e and live in v1.3.2