I'm having a problem where I'm trying to insert a system message 'affirmation' into a form (specifically, the upload form in SpecialUpload.php), following a checkbox. I'm currently using this:
... <tr> <td></td> <td align='left'> <input tabindex='9' type='checkbox' name="wpUploadAffirm" value="1" id="wpUploadAffirm" onchange="change_form();" onclick="change_form();" /> ");
$wgOut->addWikiText( wfMsgForContent( 'affirmation' ) ); $wgOut->addHtml( " </td> ...
However, when I do this, there's a linefeed output in front of the system message, so the message does not appear on the same line as the checkbox, but the next one.
Is there another method to correctly parse a message like this that doesn't include the extra linefeed?
-Jeff