mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13901] Add whitespace to short, multiline quotes for readability
PHPBB3-13901
This commit is contained in:
@@ -69,7 +69,7 @@ class utils implements \phpbb\textformatter\utils_interface
|
||||
$quote .= ' ' . $name . '=' . $this->enquote($value);
|
||||
}
|
||||
$quote .= ']';
|
||||
$newline = (strlen($quote . $text . '[/quote]') > 80) ? "\n" : '';
|
||||
$newline = (strlen($quote . $text . '[/quote]') > 80 || strpos($text, "\n") !== false) ? "\n" : '';
|
||||
$quote .= $newline . $text . $newline . '[/quote]';
|
||||
|
||||
return $quote;
|
||||
|
Reference in New Issue
Block a user