case 'h1':
$indent[] = '======== ';
break;
case 'h2':
$indent[] = '-------- ';
break;
case '/h1':
case '/h2':
// Pad the line with dashes.
$output =
static::
htmlToTextPad($output,
($tagname == '/h1'
) ? '=' : '-', ' '
);
array_pop($indent);
// Ensure blank new-line.
$chunk = '';
break;
// Horizontal rulers.
case 'hr':
// Insert immediately.
$output .=
static::
wrapMail('',
implode('',
$indent)) . "\n";
$output =
static::
htmlToTextPad($output, '-'
);
break;