From f5a063dc93682ca07ba2e3c00685b658c2730655 Mon Sep 17 00:00:00 2001 From: Lex Lim Date: Tue, 25 Mar 2025 03:55:47 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BF=A1=E6=81=AF=E6=A1=86?= =?UTF-8?q?=E7=9A=84=E7=A9=BA=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/InformationWidget.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/InformationWidget.php b/includes/InformationWidget.php index a321795..cb692cf 100644 --- a/includes/InformationWidget.php +++ b/includes/InformationWidget.php @@ -7,7 +7,7 @@ use PPFrame; class InformationWidget { public static function parseContent($content, $dataMap, $title) { - $lines = explode("\n", str_replace("\r\n", "\n", $content)); + $lines = explode("\n", str_replace("\r\n", "\n", trim($content))); $prevDataKey = null; $finalData = []; @@ -215,9 +215,9 @@ class InformationWidget { case 'text': return static::buildText($parser, $frame, $dataMap, $title, $picture, $float); case 'infobox': - return static::buildInfoBox($parser, $frame, $dataMap, $title, $picture, $float); default: - return '' . wfMessage('isekai-information-error-invalid-type')->parse() . ''; + return static::buildInfoBox($parser, $frame, $dataMap, $title, $picture, $float); + // return '' . wfMessage('isekai-information-error-invalid-type')->parse() . ''; } } } \ No newline at end of file