$lines = explode("\n", $line);
$quote = str_repeat($mark, $level);
foreach ($lines as &$line) {
- $line = $quote . $line;
+ $line = $quote . ' ' . $line;
}
return implode("\n", $lines);
}
if (!empty($buffer)) {
$text .= banana_wordwrap(implode("\n", $buffer), $level + $base_level) . "\n";
$buffer = array();
- }
+ }
$level = $lvl;
}
$buffer[] = $line;
}
return $css;
}
-
+
/**
* @return string
* @param string
$tidy_config = array('drop-empty-paras' => true,
'drop-proprietary-attributes' => true,
'hide-comments' => true,
- 'logical-emphasis' => true,
+ 'logical-emphasis' => true,
'output-xhtml' => true,
'replace-color' => true,
'join-classes' => false,
// Use inlined style instead of old html attributes
if ($to_xhtml) {
$source = preg_replace('/<(\/?\w+)(.*?)(\/?>)/muise', "'<\\1' . banana_cleanStyles('\\1', '\\2') . '\\3'", $source);
- }
+ }
return preg_replace('/<(.*?)>/ie', "'<'.banana_removeEvilAttributes('\\1').'>'", $source);
}
$res = trim(strip_tags($res, '<div><br><p><blockquote>'));
$res = preg_replace("@</?(br|p|div).*?>@si", "\n", $res);
$res = banana__convertQuotes($res);
- return banana_html_entity_decode($res);
+ return banana_html_entity_decode($res);
}
function banana_formatHtml(BananaMimePart $part)
$text = banana_catchHtmlSignature($text);
if (!Banana::$msgshow_externalimages) {
$text = banana_hideExternalImages($text);
- }
+ }
$text = banana_catchPartLinks($text);
return banana_cleanHtml($text, true);
}
// }}}
-// vim:set et sw=4 sts=4 ts=4 enc=utf-8:
+// vim:set et sw=4 sts=4 ts=4 fenc=utf-8:
?>