[pmwiki-users] Nested Blocks (tables, divs, etc)

Eemeli Aro eemeli at gmail.com
Wed Feb 25 08:13:44 CST 2009


2009/2/25 Oliver Betz <list_ob at gmx.net>:
> "Patrick R. Michaud" wrote:
>>We have nested markup -- just add some digits to the end of
>>(:div:), (:table:), or whatever you're using.  And although PmWiki
>
> I knew this for div, but not for table.
>
> And I wasn't able to get nested table markup working. Could you
> explain it here or in the docs?

Confirming this. The culprit is around line 420 of stdmarkup.php,
where we currently have:

Markup('table', '<block',
  '/^\\(:(table|cell|cellnr|tableend|div\\d*(?:end)?)(\\s.*?)?:\\)/ie',
  "Cells('$1',PSS('$2'))");

To get nested tables to work, this probably ought to be replaced with
something like this:

Markup('table', '<block',
  '/^\\(:(cell|cellnr|(?:div|table)\\d*(?:end)?)(\\s.*?)?:\\)/ie',
  "Cells('$1',PSS('$2'))");

eemeli



More information about the pmwiki-users mailing list