From: Gergő Tisza Date: Mon, 7 Jan 2019 01:33:50 +0000 (-0800) Subject: Improve OutputPage::wrapWikiMsg documentation X-Git-Tag: 1.34.0-rc.0~3135^2 X-Git-Url: http://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=e952baca2029e74041c832eac24b90d993ecb0dd;p=lhc%2Fweb%2Fwiklou.git Improve OutputPage::wrapWikiMsg documentation Four spaces before the code sample makes it actually intepreted as code sample in many phpdoc parsers (e.g. PhpStorm) instead of trying to intepret HTML tags as HTML and making a mess of things. Change-Id: I17d09a64116fa9b1372a7fd39f2a8049dcf805b1 --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 02e13e74fe..61a1ef2d87 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -4134,12 +4134,12 @@ class OutputPage extends ContextSource { * * For example: * - * $wgOut->wrapWikiMsg( "
\n$1\n
", 'some-error' ); + * $wgOut->wrapWikiMsg( "
\n$1\n
", 'some-error' ); * * Is equivalent to: * - * $wgOut->addWikiTextAsInterface( "
\n" - * . wfMessage( 'some-error' )->plain() . "\n
" ); + * $wgOut->addWikiTextAsInterface( "
\n" + * . wfMessage( 'some-error' )->plain() . "\n
" ); * * The newline after the opening div is needed in some wikitext. See T21226. *