Hallo

I got fond of text2tbl.php  with a slight problem

If several 

TABLESTART

 A   b       

TABLEEND

 

TABLESTART

 C   d       

TABLEEND

 

follow each other, it becomes ONE table in place of several ones.

 

I looked at the source and would like if someone agrees in this change:

New:

$ROEPatterns["/TABLESTART([^:\n]*)\n(.*?\n)(\s*TABLEEND)/se"] = "'||
'.PSS('$1').'\n'.PSS(preg_replace(array('/ {2,}/', '/^/m', '/$/m'), array('
||', '||', ' ||'), PSS('$2')))";

 

OLD:

//$ROEPatterns["/TABLESTART([^\n]*)\n(.*)\n\s*TABLEEND\n/se"] = "'||
'.PSS('$1').'\n'.PSS(preg_replace(array('/ {2,}/', '/^/m', '/$/m'), array('
||', '||', ' ||'), PSS('$2')))";

 

Trying to solve this problem, I did not find the lookahead solution, which
was used in  (:text2tbl    

 

;-)

 

Peter

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to