typing buffers doesn't obey spaces
![](https://secure.gravatar.com/avatar/259bf6f79ab74e5f419e661bcc80b45c.jpg?s=120&d=mm&r=g)
This is related to Hans' suggestion for typing code next to text in tabulate environment. The following fragment has a slight problem: \definebuffer[CodeSnippet] \startCodeSnippet \starttyping first line second line \stoptyping \stopCodeSnippet When I do a \getbuffer[CodeSnippet] inside tabulate, the empty line is suppressed :( How to fix it (empty lines really do improve readability of the source)? BTW, why it is not possible to have \starttyping/\stoptyping inside 'p' column in tabulate?
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
At 07:55 02/04/2003 +0200, you wrote:
This is related to Hans' suggestion for typing code next to text in tabulate environment. The following fragment has a slight problem:
\definebuffer[CodeSnippet] \startCodeSnippet \starttyping first line
second line \stoptyping \stopCodeSnippet
When I do a \getbuffer[CodeSnippet] inside tabulate, the empty line is suppressed :( How to fix it (empty lines really do improve readability of the source)?
dunno, just remove \start-stoptyping and use \typebuffer[CodeSnippet] instead Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
![](https://secure.gravatar.com/avatar/6af1f724a401c9f6f746a973f33ff595.jpg?s=120&d=mm&r=g)
Hans Hagen
This is related to Hans' suggestion for typing code next to text in tabulate environment. The following fragment has a slight problem:
[...]
When I do a \getbuffer[CodeSnippet] inside tabulate, the empty line is suppressed :( How to fix it (empty lines really do improve readability of the source)?
dunno, just remove \start-stoptyping and use \typebuffer[CodeSnippet] instead
does not work here, the empty line is ignored: \definebuffer[CodeSnippet] \startCodeSnippet first line second line \stopCodeSnippet \starttext \starttabulate[|p|r|] \NC \typebuffer[CodeSnippet] \NC none \NC\NR \NC hello \NC hello \NC\NR \stoptabulate \stoptext Patrick
participants (3)
-
Hans Hagen
-
Patrick Gundlach
-
Zeljko Vrba