summaryrefslogtreecommitdiffstats
path: root/system/libraries/Typography.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-09-11 20:21:18 +0200
committerDerek Jones <derek.jones@ellislab.com>2008-09-11 20:21:18 +0200
commit50500a27df17d60d87ce89eca64c644124c64bdc (patch)
treeb786547f4194ee23657a259ca5bd570312687c73 /system/libraries/Typography.php
parente320bc8ae23d3fab537c620d980a2aa0cb8919a9 (diff)
massaged regex for double spaces after sentences
Diffstat (limited to 'system/libraries/Typography.php')
-rw-r--r--system/libraries/Typography.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Typography.php b/system/libraries/Typography.php
index 84e6a046f..9fcf6b669 100644
--- a/system/libraries/Typography.php
+++ b/system/libraries/Typography.php
@@ -269,7 +269,7 @@ class CI_Typography {
'/\w\.{3}/' => '&#8230;',
// double space after sentences
- '/(\W)\s{2}/' => '$1&nbsp; ',
+ '/(\W) /' => '$1&nbsp; ',
// ampersands, if not a character entity
'/&(?!#?[a-zA-Z0-9]{2,};)/' => '&amp;'