1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00

Replace tabs with 8 spaces

This commit is contained in:
Savetheinternet 2011-11-16 15:54:35 +11:00
parent f71389333e
commit 834a38a562

View File

@ -1257,6 +1257,9 @@
$body = str_replace('---', '–', $body); // em dash
$body = str_replace('--', '—', $body); // en dash
}
// replace tabs with 8 spaces
$body = str_replace("\t", ' ', $body);
// Cites
if(isset($board) && preg_match_all('/(^|\s)>>(\d+?)([\s,.?]|$)/', $body, $cites)) {