textile patch

This commit is contained in:
Garvin Hicking 2007-11-26 10:47:35 +00:00
parent af5ca0ecea
commit 41b86a3afb
2 changed files with 4 additions and 4 deletions

View File

@ -466,8 +466,8 @@ class Textile
function fList($m)
{
$text = explode("\n", $m[0]);
foreach($text as $line) {
$nextline = next($text);
foreach($text as $nr => $line) {
$nextline = isset($text[$nr+1]) ? $text[$nr+1] : false;
if (preg_match("/^([#*]+)($this->a$this->c) (.*)$/s", $line, $m)) {
list(, $tl, $atts, $content) = $m;
$nl = '';

View File

@ -339,8 +339,8 @@ Applying Attributes:
{
global $textile_a,$textile_c;
$text = explode("\n",$m[0]);
foreach($text as $line){
$nextline = next($text);
foreach($text as $nr => $line){
$nextline = isset($text[$nr+1]) ? $text[$nr+1] : false;
if(preg_match("/^([#*]+)($textile_a$textile_c) (.*)$/s",$line,$m)) {
list(,$tl,$textile_atts,$textile_content) = $m;
$nl = preg_replace("/^([#*]+)\s.*/","$1",$nextline);