http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99164
Revision: 99164 Author: brion Date: 2011-10-06 23:01:29 +0000 (Thu, 06 Oct 2011) Log Message: ----------- Followup to r98583; ProofreadPage was inserting a new newline at the start of the footer on every save, but this wasn't visible until r98583 because the previous save's newline got stripped on the next edit. Moved the newline insertion from after to before the <noinclude>, so it's no longer considered part of the footer and doesn't expand because it hooks up to a place we *do* strip newlines at the end of the body (but is still there to make sure the footer appears on a separate line :) Modified Paths: -------------- trunk/extensions/ProofreadPage/ProofreadPage_body.php Modified: trunk/extensions/ProofreadPage/ProofreadPage_body.php =================================================================== --- trunk/extensions/ProofreadPage/ProofreadPage_body.php 2011-10-06 22:59:35 UTC (rev 99163) +++ trunk/extensions/ProofreadPage/ProofreadPage_body.php 2011-10-06 23:01:29 UTC (rev 99164) @@ -1045,7 +1045,7 @@ $text = '<noinclude><pagequality level="' . $editpage->quality . '" user="' . $editpage->username . '" />' . '<div class="pagetext">' . $editpage->header."\n\n\n</noinclude>" . $editpage->textbox1 . - "<noinclude>\n" . $editpage->footer . '</div></noinclude>'; + "\n<noinclude>" . $editpage->footer . '</div></noinclude>'; $editpage->textbox1 = $text; } else { // replace deprecated template _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs