[NTG-context] Table width trouble

nico nicolas.marsgui at libertysurf.fr
Sun Apr 23 01:29:28 CEST 2006


Hello,

I come back with that damn table test case. With release 2006.04.22:

- it works fine when the column width is passed as table option,
- it's wrong when the width is passed via a column setup only,
- it works ok when both table and column option are passed, and it's the  
column option that is used (which is the expected behaviour).
- it's ok when no width specified at all.

\starttext

\startbuffer
\bTR \bTD[nc=2] A \eTD\bTD x \eTD \bTD[nc=2] B \eTD \eTR
\bTR \bTD X \eTD \bTD[nc=3] C \eTD \bTD x \eTD \eTR
\bTR \bTD[nc=2] D \eTD \bTD x \eTD \bTD[nc=2] E \eTD \eTR
\stopbuffer

% ok
\bTABLE[frame=on,width=3em]
\getbuffer
\eTABLE

% nok, messy table
\bTABLE[frame=on]
\setupTABLE[c][each][width=3em]
\getbuffer
\eTABLE

% ok, width=3em for each column
\bTABLE[frame=on,width=0.1pt]
\setupTABLE[c][each][width=3em]
\getbuffer
\eTABLE

% ok
\bTABLE[frame=on]
\getbuffer
\eTABLE

\stoptext


Regards,
BG


More information about the ntg-context mailing list