Index: trunk/extensions/CodeReview/backend/CodeRevision.php |
— | — | @@ -524,7 +524,7 @@ |
525 | 525 | * @return CodeComment |
526 | 526 | */ |
527 | 527 | public function previewComment( $text, $review, $parent = null ) { |
528 | | - $data = $this->commentData( $text, $review, $parent ); |
| 528 | + $data = $this->commentData( rtrim( $text ), $review, $parent ); |
529 | 529 | $data['cc_id'] = null; |
530 | 530 | return CodeComment::newFromData( $this, $data ); |
531 | 531 | } |
— | — | @@ -536,7 +536,7 @@ |
537 | 537 | * @return int |
538 | 538 | */ |
539 | 539 | public function saveComment( $text, $review, $parent = null ) { |
540 | | - $text = trim( $text ); |
| 540 | + $text = rtrim( $text ); |
541 | 541 | if ( !strlen( $text ) ) { |
542 | 542 | return 0; |
543 | 543 | } |