ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: t-vim: additional space in \inlineX{}
Date: Tue, 20 Sep 2011 21:39:37 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LNX.2.02.1109202136380.6961@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <201109210019.38092.romain.diss@yahoo.fr>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1012 bytes --]

On Wed, 21 Sep 2011, Romain Diss wrote:

> I tried the t-vim module today and I had a line-break problem with \inlineX. I
> found the thread started by Peter Münster (last week). So I downloaded the
> last context beta and this problem is gone.
>
> But I got another problem : there is an unwanted additional space at the
> begining of the \inlineX content.
>
> See this minimal example (copy paste from Peter Münster mail):
>
> \usemodule[vim]
> \definevimtyping[C][syntax=c]
> \starttext
> bla \inlineC{void func(void)} bla
> \stoptext

\ReadFile introduces a spurious space when reading the file! Here is a 
minimal example (compare the output of \ReadFile and \input):

\startbuffer[test]
{\bf bold}
\stopbuffer

\savebuffer[test][test]
\starttext
»{\bf bold}«
\endlinechar\minusone %to prevent line break after reading file
»\ReadFile{\jobname-test.tmp}«
»\input\jobname-test.tmp\relax«
\stoptext

t-vim uses \ReadFile internally and hence inherits the bug.

Aditya

[-- 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:[~2011-09-21  1:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-20 22:19 Romain Diss
2011-09-21  1:39 ` Aditya Mahajan [this message]
2011-09-21 19:52   ` Romain Diss
2011-09-22  2:36     ` Aditya Mahajan
2011-09-22  2:58       ` Aditya Mahajan
2011-09-22 12:36         ` Romain Diss
2011-09-22 16:28           ` Aditya Mahajan
2011-09-22 19:31             ` Romain Diss

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=alpine.LNX.2.02.1109202136380.6961@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /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).