On 3/27/2013 7:55 PM, Marco Patzer wrote:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% the \stop… line of database module environment must not be indented,
%% spurious line otherwise
\usemodule [database]

\defineseparatedlist
   [CSV]
   [before=\bTABLE, after=\eTABLE,
    first=\bTR, last=\eTR,
    left=\bTD, right=\eTD]

\starttext

%% indentation with spaces works
   \startCSV
     alpha, 10
     beta,  20
     gamma, 30
   \stopCSV

%% indentation with tabs produces spurious extra line
        \startCSV
                alpha, 10
                beta,  20
                gamma, 30
        \stopCSV

%% some weird indentation works, but looks awkward
\startplacetable
        \startCSV
                alpha, 10
                beta,  20
                gamma, 30
\stopCSV
\stopplacetable

\stoptext

tricky given the meaning of spaces ... I've sent you something to test

(keep in mind that in these example there are leading spaces but they happen to be gobbled by tex; the new strip option wil front/back strip spaces)

Hans



-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to