I think the issue is with vb. How does it work?
If you try
#lang pollen
@(define (vb . s) s)
◊vb{ A B
C D}
you will find that it outputs:
'(vb " A B"
"\n"
" "
"C D")
The third element is the space before “C”. It's not discarded.
Also notice that the "start" of the line is at the marker shown below
#lang pollen
@(define (vb . s) s)
◊vb{ A B
>>> C D}
--
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/2ECCF698-BD5D-4421-B28A-EC74471715B6%40gmail.com.
Whoops. I meant:
#lang pollen
◊(define (vb . s) s)
◊vb{ A B
C D}
and the output is:
'(" A B" "\n" " " "C D")
On Oct 29, 2020, at 9:04 PM, Kevin Forchione <lys...@gmail.com> wrote:I’ve noticed that the elements being sent to a pollen tag don’t preserve the spacing when the text spans multiple lines for any space occurring before characters on the subsequent line, although does preserve the spacing between characters on that line.Is thes intentional?
On Oct 30, 2020, at 12:25 PM, Matthew Butterick <m...@mbtype.com> wrote:Spaces at the beginning of body lines do not appear in the resulting S-expressions, but the column of each line is noticed, and all-space indentation strings are added so the result has the same indentation … If the first string came from the opening { line, it is not prepended with an indentation”
On Oct 30, 2020, at 1:46 PM, Kevin Forchione <lys...@gmail.com> wrote:Thanks, Matthew! Understanding dawns. So the padding of lines is relative to the “{“ and not from the beginning of the editor line as I was assuming. How very clever. That makes alignment much easier than I’d thought!Is this mentioned anywhere in the pollen tutorials? I must have missed it.