ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: Hans Hagen <pragma@wxs.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Wolfgang Schuster <schuster.wolfgang@googlemail.com>
Subject: Re: database module: the first letter is lost
Date: Wed, 25 Jun 2014 23:13:34 +0200	[thread overview]
Message-ID: <3A2102A5-64A7-4108-A9FD-4CDB0F52F472@gmail.com> (raw)
In-Reply-To: <53AB2695.7040703@wxs.nl>


[-- Attachment #1.1: Type: text/plain, Size: 1150 bytes --]


Am 25.06.2014 um 21:44 schrieb Hans Hagen <pragma@wxs.nl>:

> On 6/25/2014 7:21 PM, Michael Green wrote:
>> This appears to be the same as the problem Peter Münster found with the letter module
>> 
>> \usemodule[database]
>> 
>> \defineseparatedlist[MyTable]
>> 	[separator=tab,
>> 	before=\bTABLE,after=\eTABLE,
>> 	first=\bTR,last=\eTR,
>> 	left=\bTD,right=\eTD]
>> 
>> \starttext
>> 
>> The first letter of “Cell” is lost.
>> 
>> \startseparatedlist[MyTable]
>> Cell 1	Cell 2
>> \stopseparatedlist
>> 
>> With an extra return, “Cell” is intact.
>> 
>> \startseparatedlist[MyTable]
>> 
>> Cell 1	Cell 2
>> \stopseparatedlist
>> 
>> 
>> \stoptext
> 
> in buff-ini.mkiv change this:
> 
> \def\buff_start_indeed#1#2#3#4%
>  {\normalexpanded{\buff_pickup{#2}{#3}{#4}{}{\buff_stop{#4}}\plusone}}
> 
> probably needs some checking

Adding \obeylines to \grabbufferdatadirect would also work

\unexpanded\def\grabbufferdatadirect % name start stop
  {\begingroup % (6)
+  \obeylines
   \buff_start_indeed\empty}

but I’m interested what’s the purpose of the fifth argument for \buff_start_indeed.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2333 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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	other threads:[~2014-06-25 21:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-25 17:21 Michael Green
2014-06-25 19:44 ` Hans Hagen
2014-06-25 21:13   ` Wolfgang Schuster [this message]
2014-06-25 23:04     ` Hans Hagen
2014-06-25 23:12       ` Aditya Mahajan
2014-06-25 23:19       ` Rik Kabel
2014-06-25 23:26         ` Aditya Mahajan
2014-06-25 23:34         ` Wolfgang Schuster
2014-06-26  0:02           ` Rik Kabel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3A2102A5-64A7-4108-A9FD-4CDB0F52F472@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.nl \
    --cc=schuster.wolfgang@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).