From 50ee326c615ed38c16d7b5698c2a6a94061de06f Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Thu, 5 Feb 2015 12:11:14 -0500 Subject: [PATCH] API: paraminfo html strings shouldn't include unnecessary

s If the output is a single paragraph, there's not really a need for explicit

tags around it. Bug: T84995 Change-Id: I4406121fe0ec099c4a4ade849ef495edad90c2ad --- includes/api/ApiParamInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiParamInfo.php b/includes/api/ApiParamInfo.php index b74d52866f..f0a5daf0f0 100644 --- a/includes/api/ApiParamInfo.php +++ b/includes/api/ApiParamInfo.php @@ -156,7 +156,7 @@ class ApiParamInfo extends ApiBase { if ( $joinLists ) { $ret = preg_replace( '!\s*\s*<\1>\s*!', "\n", $ret ); } - $res[$key] = $ret; + $res[$key] = Parser::stripOuterParagraph( $ret ); break; case 'raw': -- 2.20.1