From e952baca2029e74041c832eac24b90d993ecb0dd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gerg=C5=91=20Tisza?= Date: Sun, 6 Jan 2019 17:33:50 -0800 Subject: [PATCH] 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 --- includes/OutputPage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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. * -- 2.20.1