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