Try to fix spaces in quotes (> >>) that some newsreaders add.
This commit is contained in:
parent
caaec22735
commit
ee0253d919
|
@ -311,9 +311,14 @@ if ($type == "reply") {
|
||||||
$fromname = $bodyzeile;
|
$fromname = $bodyzeile;
|
||||||
$bodyzeile = $text_post["wrote_prefix"] . $bodyzeile . $text_post["wrote_suffix"] . "\n\n";
|
$bodyzeile = $text_post["wrote_prefix"] . $bodyzeile . $text_post["wrote_suffix"] . "\n\n";
|
||||||
for ($i = 0; $i <= count($body) - 1; $i ++) {
|
for ($i = 0; $i <= count($body) - 1; $i ++) {
|
||||||
if ((isset($cutsignature)) && ($cutsignature == true) && ($body[$i] == '-- '))
|
if ((isset($cutsignature)) && ($cutsignature == true) && ($body[$i] == '-- ')) {
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
// Try not to quote blank lines at the end of all quotes
|
||||||
if ((trim($body[$i]) == "") && ($body[$i + 1] == '-- ' || $i >= count($body) - 1)) {} else {
|
if ((trim($body[$i]) == "") && ($body[$i + 1] == '-- ' || $i >= count($body) - 1)) {} else {
|
||||||
|
// Remove spaces from starting quote '>' characters
|
||||||
|
$body = preg_replace("/^> >/", ">>", $body);
|
||||||
|
|
||||||
// Quote blank lines? YES by default
|
// Quote blank lines? YES by default
|
||||||
if (! isset($OVERRIDES['quote_blank_lines']) || $OVERRIDES['quote_blank_lines'] == true) {
|
if (! isset($OVERRIDES['quote_blank_lines']) || $OVERRIDES['quote_blank_lines'] == true) {
|
||||||
if ($body[$i][0] == '>')
|
if ($body[$i][0] == '>')
|
||||||
|
|
Loading…
Reference in New Issue