Index: trunk/extensions/ProofreadPage/ProofreadPage.php |
— | — | @@ -797,12 +797,18 @@ |
798 | 798 | $editpage->header = $editpage->safeUnicodeInput( $request, 'wpHeaderTextbox' ); |
799 | 799 | $editpage->footer = $editpage->safeUnicodeInput( $request, 'wpFooterTextbox' ); |
800 | 800 | |
| 801 | + //we want to keep ordinary spaces at the end of the main textbox |
| 802 | + $text = rtrim( $request->getText( 'wpTextbox1' ), "\t\n\r\0\x0B"); |
| 803 | + $editpage->textbox1 = $request->getBool( 'safemode' ) |
| 804 | + ? $editpage->unmakesafe( $text ) |
| 805 | + : $text; |
| 806 | + |
801 | 807 | if( $editpage->quality != null ) { |
802 | 808 | //format the page |
803 | 809 | $text = "<noinclude><pagequality level=\"".$editpage->quality."\" user=\"".$editpage->username."\" />" |
804 | 810 | .$editpage->header."\n\n\n</noinclude>" |
805 | 811 | .$editpage->textbox1 |
806 | | - ."<noinclude>\n".$editpage->footer."</noinclude>"; |
| 812 | + ."\n<noinclude>\n".$editpage->footer."</noinclude>"; |
807 | 813 | $editpage->textbox1 = $text; |
808 | 814 | } else { |
809 | 815 | //replace deprecated template |