From 9f830448ee35b709be3c303585a230dfbf8582b3 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 28 Jul 2005 22:40:42 +0200 Subject: GeSHi updated to 1.0.7.1 darcs-hash:20050728204042-7ad00-460f1fd12d7b5dfb1c58518e80ff10ea0aeb046e.gz --- inc/geshi.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'inc/geshi.php') diff --git a/inc/geshi.php b/inc/geshi.php index 5e61a44c8..46176ba19 100644 --- a/inc/geshi.php +++ b/inc/geshi.php @@ -28,7 +28,7 @@ * @author Nigel McNie * @copyright Copyright © 2004, 2005, Nigel McNie * @license http://gnu.org/copyleft/gpl.html GNU GPL - * @version $Id: geshi.php,v 1.9 2005/06/17 10:45:23 oracleshinoda Exp $ + * @version $Id: geshi.php,v 1.10 2005/07/25 10:42:23 oracleshinoda Exp $ * */ @@ -40,7 +40,7 @@ // /** The version of this GeSHi file */ -define('GESHI_VERSION', '1.0.7'); +define('GESHI_VERSION', '1.0.7.1'); /** For the future (though this may never be realised) */ define('GESHI_OUTPUT_HTML', 0); @@ -1979,14 +1979,14 @@ class GeSHi $keyword = quotemeta($keyword); if ($this->language_data['CASE_SENSITIVE'][$k]) { $stuff_to_parse = preg_replace( - "#([^a-zA-Z0-9\$_\|\.\#;>])($keyword)([^a-zA-Z0-9_<\|%\-&])#e", + "#([^a-zA-Z0-9\$_\|\#;>])($keyword)([^a-zA-Z0-9_<\|%\-&])#e", "'\\1' . $func2('\\2', '$k', 'BEGIN') . '<|$styles>' . $func('\\2') . '|>' . $func2('\\2', '$k', 'END') . '\\3'", $stuff_to_parse ); } else { // Change the case of the word. $stuff_to_parse = preg_replace( - "#([^a-zA-Z0-9\$_\|\.\#;>])($keyword)([^a-zA-Z0-9_<\|%\-&])#ie", + "#([^a-zA-Z0-9\$_\|\#;>])($keyword)([^a-zA-Z0-9_<\|%\-&])#ie", "'\\1' . $func2('\\2', '$k', 'BEGIN') . '<|$styles>' . $func('\\2') . '|>' . $func2('\\2', '$k', 'END') . '\\3'", $stuff_to_parse ); @@ -2216,13 +2216,12 @@ class GeSHi $end = ''; } else { if ($this->use_classes) { + $attr = ' class="li1"'; $def_attr = ' class="de1"'; } else { + $attr = ' style="' . $this->line_style1 . '"'; $def_attr = ' style="' . $this->code_style . '"'; } - // Reset everything - $attr = ''; - // Span or div? $start = ""; $end = ''; } -- cgit v1.2.3