% testfile table breaking

\setupoutput[pdftex]

\startbuffer[Teil]
%processtap
\bTR
   \bTD[ny=3] Stap \eTD
   \bTD (Micro)biologisch \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD \eTR
\bTR
   \bTD Chemisch \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD \eTR
\bTR
   \bTD Fysisch \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD \eTR
\stopbuffer

\starttext
\switchtobodyfont[small]

%\setupTABLE[split=yes]
\setupTABLE[row][1,2][align={middle,lohi},background=color,backgroundcolor=lightgray]

\bTABLE
\setupTABLE[split=yes]
\bTABLEhead
\bTR
   \bTH[ny=2] Processtap \eTH
   \bTH[nx=2] Gevarenanalyse \eTH
   \bTH[nx=2] Risicoanalyse \eTH \eTR
\bTR
   \bTH Gevaar \eTH
   \bTH Beheersen \eTH
   \bTH Risico \eTH
   \bTH CP / CCP \eTH \eTR
\eTABLEhead
\bTABLEbody
\bTR
   \bTD[nc=5] A. goederen \eTD\eTR
% Processtap
\bTR
   \bTD[ny=3] Stap 1 \eTD
   \bTD (Micro)biologisch nee \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD \eTR
\bTR
   \bTD Chemisch \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD \eTR
\bTR
   \bTD Fysisch  \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD \eTR
%processtap
\bTR
   \bTD[ny=3] Stap 2 \eTD
   \bTD (Micro)biologisch \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD \eTR
\bTR
   \bTD Chemisch  \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD \eTR
\bTR
   \bTD Fysisch \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD \eTR
%processtap
\bTR
   \bTD[ny=3] Stap 3 \eTD
   \bTD (Micro)biologisch \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD \eTR
\bTR
   \bTD Chemisch \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD \eTR
\bTR
   \bTD Fysisch \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD
   \bTD \strut \eTD \eTR

\dorecurse{20}{\getbuffer[Teil]}
\eTABLEbody
\eTABLE
\stoptext
