From a78b4ad38f4d68ee515f13ea25c051ad9c53f03c Mon Sep 17 00:00:00 2001 From: Thoriq Firdaus <2067467+tfirdaus@users.noreply.github.com> Date: Sun, 9 Jun 2024 11:14:06 +0700 Subject: [PATCH] Sync classes (#16) Sync classes from WordPress.org repository. --- app/Parser.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Parser.php b/app/Parser.php index f67bc15..8dc8815 100644 --- a/app/Parser.php +++ b/app/Parser.php @@ -392,7 +392,6 @@ protected function parse_readme_contents($contents) while (( $line = array_shift($contents) ) !== null) { $trimmed = trim($line); if (empty($trimmed)) { - $this->short_description .= "\n"; continue; } @@ -405,7 +404,7 @@ protected function parse_readme_contents($contents) break; } - $this->short_description .= $line . "\n"; + $this->short_description .= $line . ' '; } $this->short_description = trim($this->short_description);