mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
Merge pull request #3669 from s9e/ticket/13901
[ticket/13901] Add more whitespace to long quotes for readability
This commit is contained in:
@@ -84,7 +84,7 @@ class phpbb_functional_private_messages_test extends phpbb_functional_test_case
|
||||
public function test_quote_forward()
|
||||
{
|
||||
$text = 'This is a test private message sent by the testing framework.';
|
||||
$expected = '[quote="admin"]' . $text . '[/quote]';
|
||||
$expected = "[quote=\"admin\"]\n" . $text . "\n[/quote]";
|
||||
|
||||
$this->login();
|
||||
$message_id = $this->create_private_message('Test', $text, array(2));
|
||||
|
@@ -221,6 +221,10 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
|
||||
'[quote="http://example.org"]...[/quote]',
|
||||
'<blockquote><div><cite><a href="http://example.org" class="postlink">http://example.org</a> wrote:</cite>...</div></blockquote>'
|
||||
),
|
||||
array(
|
||||
"[quote]\nThis is a long quote that is definitely going to exceed 80 characters\n[/quote]\n\nFollowed by a reply",
|
||||
"<blockquote class=\"uncited\"><div>\nThis is a long quote that is definitely going to exceed 80 characters\n</div></blockquote>\n\nFollowed by a reply"
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@@ -171,6 +171,21 @@ class phpbb_textformatter_s9e_utils_test extends phpbb_test_case
|
||||
),
|
||||
'[quote="user" post_id="123" url="http://example.org"]...[/quote]',
|
||||
),
|
||||
array(
|
||||
'This is a long quote that is definitely going to exceed 80 characters',
|
||||
array(),
|
||||
"[quote]\nThis is a long quote that is definitely going to exceed 80 characters\n[/quote]",
|
||||
),
|
||||
array(
|
||||
' This is a short quote on its own line ',
|
||||
array(),
|
||||
'[quote]This is a short quote on its own line[/quote]',
|
||||
),
|
||||
array(
|
||||
"This is a short quote\non two lines",
|
||||
array(),
|
||||
"[quote]\nThis is a short quote\non two lines\n[/quote]",
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user