diff --git a/core/includes/mail.inc b/core/includes/mail.inc index f58a76e..4032ed7 100644 --- a/core/includes/mail.inc +++ b/core/includes/mail.inc @@ -569,7 +569,7 @@ function _drupal_html_to_text_pad($text, $pad, $prefix = '') { if (($p = strrpos($text, "\n")) === FALSE) { $p = -1; } - $n = max(0, 79 - (strlen($text) - $p) - strlen($prefix)); + $n = max(0, 78 - (strlen($text) - $p) - strlen($prefix)); // Add prefix and padding, and restore linebreak. return $text . $prefix . str_repeat($pad, $n) . "\n"; } diff --git a/core/modules/system/lib/Drupal/system/Tests/Mail/HtmlToTextTest.php b/core/modules/system/lib/Drupal/system/Tests/Mail/HtmlToTextTest.php index 5970114..a383809 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Mail/HtmlToTextTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Mail/HtmlToTextTest.php @@ -94,10 +94,10 @@ class HtmlToTextTest extends WebTestBase { // @todo The
tag is currently not supported. '
Drupal
Drupal
' => "DrupalDrupal\n", 'Drupal' => "/Drupal/\n", - '

Drupal

' => "======== DRUPAL ==============================================================\n\n", - '

Drupal

Drupal

' => "======== DRUPAL ==============================================================\n\nDrupal\n\n", - '

Drupal

' => "-------- DRUPAL --------------------------------------------------------------\n\n", - '

Drupal

Drupal

' => "-------- DRUPAL --------------------------------------------------------------\n\nDrupal\n\n", + '

Drupal

' => "======== DRUPAL =============================================================\n\n", + '

Drupal

Drupal

' => "======== DRUPAL =============================================================\n\nDrupal\n\n", + '

Drupal

' => "-------- DRUPAL -------------------------------------------------------------\n\n", + '

Drupal

Drupal

' => "-------- DRUPAL -------------------------------------------------------------\n\nDrupal\n\n", '

Drupal

' => ".... Drupal\n\n", '

Drupal

Drupal

' => ".... Drupal\n\nDrupal\n\n", '

Drupal

' => ".. Drupal\n\n", @@ -106,9 +106,9 @@ class HtmlToTextTest extends WebTestBase { '
Drupal

Drupal

' => "Drupal\n\nDrupal\n\n", '
Drupal
' => "Drupal\n\n", '
Drupal

Drupal

' => "Drupal\n\nDrupal\n\n", - '
Drupal
' => "------------------------------------------------------------------------------\nDrupal\n------------------------------------------------------------------------------\n", - '
Drupal
' => "------------------------------------------------------------------------------\nDrupal\n------------------------------------------------------------------------------\n", - '
Drupal

Drupal

' => "------------------------------------------------------------------------------\nDrupal\n------------------------------------------------------------------------------\nDrupal\n\n", + '
Drupal
' => "-----------------------------------------------------------------------------\nDrupal\n-----------------------------------------------------------------------------\n", + '
Drupal
' => "-----------------------------------------------------------------------------\nDrupal\n-----------------------------------------------------------------------------\n", + '
Drupal

Drupal

' => "-----------------------------------------------------------------------------\nDrupal\n-----------------------------------------------------------------------------\nDrupal\n\n", 'Drupal' => "/Drupal/\n", '

Drupal

' => "Drupal\n\n", '

Drupal

Drupal

' => "Drupal\n\nDrupal\n\n", @@ -140,7 +140,7 @@ class HtmlToTextTest extends WebTestBase { '' => " * Drupal\n * Drupal\n Drupal\n Drupal\n Drupal\n \n * Drupal\n\n", // Tests malformed HTML tags. '
Drupal
Drupal' => "Drupal\nDrupal\n", - '
Drupal
Drupal' => "------------------------------------------------------------------------------\nDrupal\n------------------------------------------------------------------------------\nDrupal\n", + '
Drupal
Drupal' => "-----------------------------------------------------------------------------\nDrupal\n-----------------------------------------------------------------------------\nDrupal\n", '
  1. Drupal
  2. Drupal
' => " 1) Drupal\n 2) Drupal\n\n", '' => " * Drupal /Drupal/ Drupal\n\n", '