> > I have some code that does text mode table support (in word2x) and think it
> > takes a function to render something with a given width into a buffer. Lines
> > of text seperated by newlines would be appropiate.
>
> This is not the real problem, though. The real problems are the need to
> parse the whole table to know the widths of the columns and the need to
> cope with tables that cannot sensibly be displayed in 80 columns.
>
FYI the table layout code I have can cope with width problems already. All it
needs is input for each column width appropiate line breaks inserted to stuff
it into an appropiate width, which it calculates automatically. Given the
rendering engine the rest is well covered by the code. Incidently it does use
two passes through the table contents, but surely this should not be a huge
problem.
--
Duncan (-:
"software industry, the: unique industry where selling substandard goods is
legal and you can charge extra for fixing the problems."