Strip superfluous new lines at the end of a post.

This commit is contained in:
Savetheinternet committed 2011-02-21 15:51:46 +11:00
1 parent 5ade310e15
commit 32050c8eab
2 files changed
+6

No files matched your search

+3
View File
@@ -905,6 +905,9 @@
$body = preg_replace("/''(.+?)''/m", "<em>$1</em>", $body);
$body = preg_replace("/\*\*(.+?)\*\*/m", "<span class=\"spoiler\">$1</span>", $body);
}
if($config['strip_superfluous_returns'])
$body = preg_replace('/\s+$/', '', $body);
$body = preg_replace("/\n/", '<br/>', $body);
}