Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php |
— | — | @@ -185,7 +185,9 @@ |
186 | 186 | <input type="submit" value="$button_str"></p> |
187 | 187 | </form> |
188 | 188 | END; |
189 | | - return array($str, 'noparse' => true, 'isHTML' => true); |
| 189 | + // hack to remove newline from beginning of output, thanks to |
| 190 | + // http://jimbojw.com/wiki/index.php?title=Raw_HTML_Output_from_a_MediaWiki_Parser_Function |
| 191 | + return $parser->insertStripItem($str, $parser->mStripState); |
190 | 192 | } |
191 | 193 | |
192 | 194 | /** |