? easylists_multiple_issues.patch ? easylists_short_tags.patch Index: easylists-filter.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/easylists/easylists-filter.inc,v retrieving revision 1.3 diff -u -p -r1.3 easylists-filter.inc --- easylists-filter.inc 6 Jun 2007 14:42:10 -0000 1.3 +++ easylists-filter.inc 1 Apr 2008 22:29:41 -0000 @@ -1,4 +1,4 @@ - +process($body); + $body = $listprocessor->process($body, variable_get('easylists_character_' . $format, '-')); return $body; } class listprocessor { - function process($body) + function process($body, $token) { $textLines = explode( "\n", $body ); $lastPrefix = $output = ''; @@ -23,15 +23,16 @@ class listprocessor foreach ( $textLines as $oLine ) { // lists + $oLine = trim($oLine); $lastPrefixLength = strlen( $lastPrefix ); - $prefixLength = strspn( $oLine, '-' ); + $prefixLength = strspn( $oLine, $token ); $pref = substr( $oLine, 0, $prefixLength ); $t = substr( $oLine, $prefixLength ); if( $prefixLength && 0 == strcmp( $lastPrefix, $pref ) ) { # Same as the last item, so no need to deal with nesting or opening stuff - $output .= $this->nextItem( substr( $pref, -1 ) ); + $output .= $this->nextItem( $token, substr( $pref, -1 ) ); $paragraphStack = false; } elseif( $prefixLength || $lastPrefixLength ) @@ -41,15 +42,15 @@ class listprocessor $paragraphStack = false; while( $commonPrefixLength < $lastPrefixLength ) { - $output .= $this->closeList( $lastPrefix{$lastPrefixLength-1} ); + $output .= $this->closeList( $token, $lastPrefix{$lastPrefixLength-1} ); --$lastPrefixLength; } if ( $prefixLength <= $commonPrefixLength && $commonPrefixLength > 0 ) { - $output .= $this->nextItem( $pref{$commonPrefixLength-1} ); + $output .= $this->nextItem( $token, $pref{$commonPrefixLength-1} ); } while ( $prefixLength > $commonPrefixLength ) { $char = substr( $pref, $commonPrefixLength, 1 ); - $output .= $this->openList( $char, $prefixLength > 1 ); + $output .= $this->openList( $token, $char, $prefixLength > 1 ); ++$commonPrefixLength; } $lastPrefix = $pref; @@ -61,7 +62,7 @@ class listprocessor } } while ( $prefixLength ) { - $output .= $this->closeList( $pref{$prefixLength-1} ); + $output .= $this->closeList( $token, $pref{$prefixLength-1} ); --$prefixLength; } if ( '' != $this->mLastSection ) { @@ -84,7 +85,7 @@ class listprocessor return $i; } - function openList( $char, $sublist=false ) + function openList( $token, $char, $sublist=false ) { $result = $this->closeParagraph(); if ($sublist) @@ -92,7 +93,7 @@ class listprocessor else $class = "easylist"; - if ( '-' == $char ) { $result .= '