in reply to Tables in Pod


The Pod Specification doesn't make any allowance for tables.

So unfortunately, you will be constrained to processor specific =for directives or ascii style tables in a verbatim block.

On CPAN eryq uses ascii table like this:

Use encoding: | If your message contains: ------------------------------------------------------------ 7bit | Only 7-bit text, all lines <1000 characters 8bit | 8-bit text, all lines <1000 characters quoted-printable | 8-bit text or long lines (more reliable than "8 +bit") base64 | Largely non-textual data: a GIF, a tar file, et +c.

Which are then converted to Html tables like this using a modified pod2html tool.

--
John.

Replies are listed 'Best First'.
Re: Tables in Pod
by erics (Initiate) on Oct 23, 2003 at 11:53 UTC

    Okay,thanks for the ideas. I realise that the Pod spec doesn't include tables, but figured it might be a common enough problem that someone might have written a way to achieve them. Was wondering if there was anything obvious available, but there doesn't seem to be. No problem - I'll write a quick perl script myself to pre-process the pod file and extract any tables (written in some XML flavour), parse them, and then reinsert them into the pod doc as a =for block in the output format I'm looking for (html, latex, or plaintext, at present).

    Thanks for your time Eric