ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* context() does not ignore space in empty line
@ 2021-04-19  7:22 Sylvain Hubert
  2021-04-19  8:19 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Sylvain Hubert @ 2021-04-19  7:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Dear list,

does anyone have an idea why, in the example below, context() starts a new
paragraph at "\n\n" but not at "\n \n" with a space in between? Is there
any way to fix it?

\starttext
Without using context(), inside the next parentheses is a new line: (

) note that a space sits between the two line breaks.

\startluacode
  context('Using context(), inside the next parentheses is also a new line:
(\n\n) because there is *no* space between the two line breaks.\n\n')
  context('Using context(), inside the next parentheses is however *no* new
line: (\n \n) because of the space between the two line breaks.\n\n')
\stopluacode
\stoptext

Any help is appreciated.

Best,
Sylvain

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

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-19  8:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-19  7:22 context() does not ignore space in empty line Sylvain Hubert
2021-04-19  8:19 ` Hans Hagen

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).