Re: [NTG-context] Concatenate buffers without newline

2021-06-22 Thread Wolfgang Schuster

Pascal Pascali schrieb am 22.06.2021 um 20:21:

Hello!

Is there a way to concatenate predefined blocks or buffers without ConTeXt 
printing newlines between them?

I'd like to have something like:

\startBitOfData [name1]
Some part of paragraph here.
\stopBitOfData

\startBitOfData [name2]
Some more going on here.
\stopBitOfData


And then:

\getBitOfData [name1]
\getBitOfData [name2]

Outputting:
Some part of paragraph here. Some more going on here.

Not outputting:
Some part of paragraph here.
Some more going on here.


Thank you for any tip!


Please send a *working* minimal example next time.

\starttext

\startbuffer[first]
First paragraph.
\stopbuffer

\startbuffer[second]
Second paragraph.
\stopbuffer

\start
  \setupbuffer[before=,after=]
  \getbuffer[first]%
  \getbuffer[second]
\stop

\blank

\getbuffer[first,second]

\stoptext

Wolfgang
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Concatenate buffers without newline

2021-06-22 Thread Pascal Pascali
Hello!

Is there a way to concatenate predefined blocks or buffers without ConTeXt 
printing newlines between them?

I'd like to have something like:

\startBitOfData [name1]
Some part of paragraph here. 
\stopBitOfData

\startBitOfData [name2]
Some more going on here. 
\stopBitOfData


And then:

\getBitOfData [name1]
\getBitOfData [name2]

Outputting: 
Some part of paragraph here. Some more going on here. 

Not outputting:
Some part of paragraph here. 
Some more going on here. 


Thank you for any tip!

Best regards,

Pascal


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___