From 623b27814cfed8f9060de7b81e2b35f7e88ed52e Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 11 Dec 2009 01:22:32 +0100 Subject: removed unused whitespaces --- paste/include/class.geshi.php | 119 +++++++++++++++++++++--------------------- 1 file changed, 59 insertions(+), 60 deletions(-) (limited to 'paste/include') diff --git a/paste/include/class.geshi.php b/paste/include/class.geshi.php index ee6436e..f804af0 100644 --- a/paste/include/class.geshi.php +++ b/paste/include/class.geshi.php @@ -1,10 +1,10 @@ * @version 1.1.0 * @since 1.0.0 @@ -207,42 +207,42 @@ class GeSHi /** * The root context to use for parsing the source - * + * * @var GeSHiContext */ var $_rootContext; - + /** * Whether this object should be prepared as if it will be used * many times - * + * * @var boolean */ var $_cacheRootContext; - + /** * The cached root context, if caching of context trees is enabled - * + * * @var GeSHiContext */ var $_cachedRootContext; - + /** * The GeSHiStyler object used by this class and all contexts for * assisting parsing. - * + * * @var GeSHiStyler */ /**#@-*/ - + /** * Sets the source and language name of the source to parse * * Also sets up other defaults, such as the default encoding - * + * * USAGE: - * + * *
$geshi =& new GeSHi($source, $language);
      * if (false !== ($msg = $geshi->error())) {
      *     // Handle error here: error message in $msg
@@ -268,11 +268,11 @@ class GeSHi
             'parse' => $initial_times,
             'post'  => $initial_times
         );
-        
+
         $this->_styler =& new GeSHiStyler;
 
-        // @todo [blocking 1.1.5] Make third parameter an option array thing        
-        
+        // @todo [blocking 1.1.5] Make third parameter an option array thing
+
         $this->setFileExtension(GESHI_DEFAULT_FILE_EXTENSION);
         //$this->setOutputFormat(GESHI_OUTPUT_HTML);
         //$this->setEncoding(GESHI_DEFAULT_ENCODING);
@@ -285,7 +285,7 @@ class GeSHi
     /**
      * Returns an error message if there has been an error. Useful for debugging,
      * but not recommended for use on a live site.
-     * 
+     *
      * The last error that occured is returned by this method
      * @todo [blocking 1.1.9] Documentation: has this changed from 1.0.X?
      *
@@ -347,7 +347,7 @@ class GeSHi
         $this->_times['pre'][0] = microtime();
         geshi_dbg('GeSHi::setLanguage('.$language_name.')', GESHI_DBG_API);
         $this->_language = strtolower($language_name);
-        
+
         // Make a legal language name
         if (false === strpos($this->_language, '/')) {
             $this->_language .= '/'.$this->_language;
@@ -378,13 +378,13 @@ class GeSHi
     {
         $this->setLanguage($language_name);
     }
-    
+
     /**
      * Sets whether this object should cache the root context as loaded. Use
      * this if you're going to use the same language in this object to parse
      * multiple source codes.
      *
-     * @param boolean true if caching of context data should be used 
+     * @param boolean true if caching of context data should be used
      */
     function cacheRootContext ($flag = true)
     {
@@ -393,10 +393,10 @@ class GeSHi
         $this->_cachedRootContext = ($this->_cacheRootContext) ? $this->_rootContext : null;
         geshi_dbg('  Set caching to ' . $flag . ', cached root context size = ' . count($this->_cachedRootContext), GESHI_DBG_API);
     }
-    
+
     /**
      * Sets the file extension to use when getting external php files
-     * 
+     *
      * @param string The file extension for PHP files. Can be specified with or without the leading "."
      */
     function setFileExtension ($extension)
@@ -413,7 +413,7 @@ class GeSHi
      *
      * You can pass a string to this method, it will return various timings based
      * on what string you pass:
-     * 
+     *
      * 
'; - + // @todo [blocking 1.1.1] (bug 12) Evaluate feasability and get working if possible the functionality below... //$result = preg_replace('#([^"])(((https?)|(ftp))://[a-z0-9\-]+\.([a-z0-9\-\.]+)+/?([a-zA-Z0-9\.\-_%]+/?)*\??([a-zA-Z0-9=&\[\];%]+)?(\#[a-zA-Z0-9\-_]+)?)#', '\\1\\2', $result); //$result = preg_replace('#([a-z0-9\._\-]+@[[a-z0-9\-\.]+[a-z]+)#si', '\\1', $result); - - return $result; + + return $result; } - - + + /** * Helper function to convert a language name to the file name where its data will reside - * + * * @return The absolute path of the language file where the current language data will be sourced */ function _getLanguageDataFile () @@ -733,7 +733,6 @@ class GeSHi geshi_dbg('Language file is ' . $language_file, GESHI_DBG_API); return GESHI_LANGUAGES_ROOT . $language_file; } - /**#@-*/ + /**#@-*/ } ?> - -- cgit v1.2.3