Skip to content

Commit

Permalink
Use pre-wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-sherman committed Sep 25, 2024
1 parent 9989aeb commit c983f8e
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,7 @@ async function LiveComment({
<TimeAgo createdAt={comment.createdAt} side="bottom" />
</Link>
</div>
{comment.body?.split("\n").map((line, index) => (
<p
// eslint-disable-next-line react/no-array-index-key
key={index}
>
{line}
</p>
))}
<p className="whitespace-pre-wrap">{comment.body}</p>
</CommentClientWrapperWithToolbar>

{comment.children?.map((comment) => (
Expand Down

0 comments on commit c983f8e

Please sign in to comment.