Remove leading and trailing blank lines in review comments.
Review Request #4561 — Created Sept. 12, 2013 and submitted — Latest diff uploaded
Remove leading and trailing blank lines in review comments.
When a user submits a review comment, leading and trailing
blank lines are saved as part of the comment. We want to strip
these blank lines before saving the comment to the database.Reviewed at https://reviews.reviewboard.org/r/4561/
Fix for issue 2933
Created new review request and manually tested:
-review
-review reply
-diff comment
-reply diff comment
-file attachment comment
-reply file attachment commentUnit tests pass.
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 6. See what's changed.
orig
1
2
3
4
5
6
reviewboard/static/rb/js/views/reviewReplyEditorView.js |
---|