From 08e38123f2b14b146f861c77c04073a3fc88c85d Mon Sep 17 00:00:00 2001 From: Rick Ellis Date: Fri, 12 Sep 2008 06:21:25 +0000 Subject: --- system/libraries/Typography.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'system/libraries/Typography.php') diff --git a/system/libraries/Typography.php b/system/libraries/Typography.php index 93e40b94a..b058fdab9 100644 --- a/system/libraries/Typography.php +++ b/system/libraries/Typography.php @@ -6,7 +6,7 @@ * * @package CodeIgniter * @author ExpressionEngine Dev Team - * @copyright Copyright (c) 2006, EllisLab, Inc. + * @copyright Copyright (c) 2008, EllisLab, Inc. * @license http://codeigniter.com/user_guide/license.html * @link http://codeigniter.com * @since Version 1.0 @@ -50,10 +50,17 @@ class CI_Typography { } /** - * Main Processing Function + * Auto Typography * + * This function converts text, making it typographically correct: + * - Converts double spaces into paragraphs. + * - Converts single line breaks into
tags + * - Converts single and double quotes into correctly facing curly quote entities. + * - Converts three dots into ellipsis. + * - Converts double dashes into em-dashes. + * - Converts two spaces into entities */ - function convert($str) + function auto_typography($str) { if ($str == '') { -- cgit v1.2.3-24-g4f1b