Re: How can one put a table into a pod

[email protected] (Karl Williamson)
Newsgroups perl.pod-people,perl.perl5.porters
Message-ID <[email protected]>
On 04/23/2011 01:09 PM, Karl Williamson wrote:
> I don't know how to put a table into a pod. One can simulate it by using
> as-is formatting, but it's not very good.
>
> The documentation in perlpod seems to indicate that in
> ----------------------------------------------------
> =begin html
>
> <br>Figure 1.<br><IMG SRC="figure1.png"><br>
>
> =end html
>
> =begin text
>
> ---------------
> | foo |
> | bar |
> ---------------
>
> ^^^^ Figure 1. ^^^^
>
> =end text
> ----------------------------------------------------
>
>
> the 'text' part acts as a fall back, and that an html formatter will not
> output it, even though it knows how to. Is that the case? If so, that
> could be used to put a table into the pod that works for the formatters
> that one knows how to specify tables for, and have the as-is function as
> a fallback. But how does one guarantee that the format version and the
> fallback aren't both output?
>

It's worse than I thought.  I ran some experiments.  It appears that the 
various formatters don't recognize 'text', and so there's no way to 
specify a fall back.  Perhaps there is a 'text' formatter.  I don't know 
what it would be.

There also doesn't appear to be a way to extend the pod language in a 
backwards compatible way.

Am I missing something?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.