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