textile patch
This commit is contained in:
parent
af5ca0ecea
commit
41b86a3afb
@ -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 = '';
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user