diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-11-16 15:54:35 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-11-16 15:54:35 +1100 |
| commit | 834a38a562ea05fac19b7f49a3d1f2161ccf77a5 (patch) | |
| tree | 9b8f313c29bcfbadc71a78d0ca790e2b2b21330e /inc | |
| parent | f71389333ecfa74145c06a79c1ef320af7d9c47f (diff) | |
Replace tabs with 8 spaces
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/functions.php | 3 |
1 files changed, 3 insertions, 0 deletions
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)) { |
