From 834a38a562ea05fac19b7f49a3d1f2161ccf77a5 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 16 Nov 2011 15:54:35 +1100 Subject: [PATCH] Replace tabs with 8 spaces --- inc/functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/functions.php b/inc/functions.php index 38921d85..a88399f3 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -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)) {