textile patch
This commit is contained in:
@@ -466,8 +466,8 @@ class Textile
|
|||||||
function fList($m)
|
function fList($m)
|
||||||
{
|
{
|
||||||
$text = explode("\n", $m[0]);
|
$text = explode("\n", $m[0]);
|
||||||
foreach($text as $line) {
|
foreach($text as $nr => $line) {
|
||||||
$nextline = next($text);
|
$nextline = isset($text[$nr+1]) ? $text[$nr+1] : false;
|
||||||
if (preg_match("/^([#*]+)($this->a$this->c) (.*)$/s", $line, $m)) {
|
if (preg_match("/^([#*]+)($this->a$this->c) (.*)$/s", $line, $m)) {
|
||||||
list(, $tl, $atts, $content) = $m;
|
list(, $tl, $atts, $content) = $m;
|
||||||
$nl = '';
|
$nl = '';
|
||||||
|
@@ -339,8 +339,8 @@ Applying Attributes:
|
|||||||
{
|
{
|
||||||
global $textile_a,$textile_c;
|
global $textile_a,$textile_c;
|
||||||
$text = explode("\n",$m[0]);
|
$text = explode("\n",$m[0]);
|
||||||
foreach($text as $line){
|
foreach($text as $nr => $line){
|
||||||
$nextline = next($text);
|
$nextline = isset($text[$nr+1]) ? $text[$nr+1] : false;
|
||||||
if(preg_match("/^([#*]+)($textile_a$textile_c) (.*)$/s",$line,$m)) {
|
if(preg_match("/^([#*]+)($textile_a$textile_c) (.*)$/s",$line,$m)) {
|
||||||
list(,$tl,$textile_atts,$textile_content) = $m;
|
list(,$tl,$textile_atts,$textile_content) = $m;
|
||||||
$nl = preg_replace("/^([#*]+)\s.*/","$1",$nextline);
|
$nl = preg_replace("/^([#*]+)\s.*/","$1",$nextline);
|
||||||
|
Reference in New Issue
Block a user