aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/textformatter/s9e/utils.php
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2015-05-30 22:20:52 +0200
committerJoshyPHP <s9e.dev@gmail.com>2015-05-30 22:20:52 +0200
commitb69e33c2b0dfaaf9274e783cd189a8d1d49bce07 (patch)
treec717cbbd60e21e0960e8f3d6c51761814bbf6f29 /phpBB/phpbb/textformatter/s9e/utils.php
parent2f0d11ba3c28f27e535988de2a8d08f7b17aef92 (diff)
downloadforums-b69e33c2b0dfaaf9274e783cd189a8d1d49bce07.tar
forums-b69e33c2b0dfaaf9274e783cd189a8d1d49bce07.tar.gz
forums-b69e33c2b0dfaaf9274e783cd189a8d1d49bce07.tar.bz2
forums-b69e33c2b0dfaaf9274e783cd189a8d1d49bce07.tar.xz
forums-b69e33c2b0dfaaf9274e783cd189a8d1d49bce07.zip
[ticket/13901] Add whitespace to short, multiline quotes for readability
PHPBB3-13901
Diffstat (limited to 'phpBB/phpbb/textformatter/s9e/utils.php')
-rw-r--r--phpBB/phpbb/textformatter/s9e/utils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/utils.php b/phpBB/phpbb/textformatter/s9e/utils.php
index 64fdb628ca..803c71a5a2 100644
--- a/phpBB/phpbb/textformatter/s9e/utils.php
+++ b/phpBB/phpbb/textformatter/s9e/utils.php
@@ -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;