[pmwiki-users] text2tbl problem

Peter K.H. Gragert p.k.h.gragert at misc.utwente.nl
Tue Mar 30 11:07:14 CDT 2010


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20100330/441016be/attachment.html>


More information about the pmwiki-users mailing list