Fix wrapping on newly-created review replies.

Review Request #11221 — Created Oct. 14, 2020 and submitted

Information

Review Board
release-4.0.x

Reviewers

The client-side template for the review reply editor was creating the
<pre> tag for the reply contents missing the comment-text class,
which didn't cause many obvious problems except that the text would not
wrap correctly. A reload would fix this, since then the reply element
was created on the backend with the correct class list. This change
fixes up the template to add all necessary classes.

This only appeared on reviews associated with status updates, because
there was a separate rule setting white-space on pre tags within a
.review element. These should probably all be cleaned up at some point
when we move the review entries over to the new CSS component standard.

Created a draft reply to a Review Bot comment and saw that it now
wrapped correctly.

Summary ID
Fix wrapping on newly-created review replies.
The client-side template for the review reply editor was creating the `<pre>` tag for the reply contents missing the `comment-text` class, which didn't cause many obvious problems except that the text would not wrap correctly. A reload would fix this, since then the reply element was created on the backend with the correct class list. This change fixes up the template to add all necessary classes. This only appeared on reviews associated with status updates, because there was a separate rule setting `white-space` on pre tags within a `.review` element. These should probably all be cleaned up at some point when we move the review entries over to the new CSS component standard. Testing Done: Created a draft reply to a comment and saw that it now wrapped correctly.
333320d2d1f523a9dab42f3a49d1f4a269766406
chipx86
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-4.0.x (6fafb89)