diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2015-05-30 22:20:52 +0200 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2015-05-30 22:20:52 +0200 |
commit | b69e33c2b0dfaaf9274e783cd189a8d1d49bce07 (patch) | |
tree | c717cbbd60e21e0960e8f3d6c51761814bbf6f29 /phpBB/phpbb/textformatter | |
parent | 2f0d11ba3c28f27e535988de2a8d08f7b17aef92 (diff) | |
download | forums-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')
-rw-r--r-- | phpBB/phpbb/textformatter/s9e/utils.php | 2 |
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; |