[ticket/15637] Remove trailing space from description

PHPBB3-15637
This commit is contained in:
kasimi 2018-07-07 21:53:26 +02:00
parent 245f4df47c
commit eedcb3bbe1
No known key found for this signature in database
GPG key ID: 3163AB573241193A

View file

@ -281,6 +281,12 @@ class php_exporter
$description_line_num++; $description_line_num++;
} }
// If there is an empty line between description and first tag, remove it
if (!strlen(end($description_lines)))
{
array_pop($description_lines);
}
$description = trim(implode('<br/>', $description_lines)); $description = trim(implode('<br/>', $description_lines));
if (isset($this->events[$this->current_event])) if (isset($this->events[$this->current_event]))