Fix another text wrap issue (added test case)

pull/88/head
Aleksander Machniak 11 years ago
parent fedbd431c2
commit c067bb55df

@ -659,8 +659,8 @@ class rcube_mime
$cutLength = $spacePos + 1;
}
else {
$subString = $string;
$cutLength = null;
$subString = $substr_func($string, 0, $breakPos, $charset);
$cutLength = $breakPos + 1;
}
}
else {

@ -185,6 +185,10 @@ class Framework_Mime extends PHPUnit_Framework_TestCase
array("----------------------------------------------------------------------------------------\nabc def123456789012345", 76),
"----------------------------------------------------------------------------------------\nabc def123456789012345",
),
array(
array("-------\nabc def", 5),
"-------\nabc\ndef",
),
);
foreach ($samples as $sample) {

Loading…
Cancel
Save