[racket] [slideshow/code] typesetting comments

From: Eric Tanter (etanter at dcc.uchile.cl)
Date: Thu Jun 30 12:07:42 EDT 2011

To add to the strangeness, if one tries the following:

(code
(λ (x) 
  1 (code:comment "1")
  ))

Then the output is not well-formed:

(λ (x) 
  1 ; 1

-- Éric


On Jun 30, 2011, at 11:42 AM, Eric Tanter wrote:

> Hi,
> 
> There is something strange with the way comments are rendered.
> 
> Consider:
> #lang racket
> (require slideshow/code)
> 
> (code
> (λ (x) 1) (code:comment "1"))
> 
> (code
> (λ (x) (code:comment "1")
>   1))
> 
> (code
> (λ (x) 
>   1) (code:comment "1"))
> 
> the two first cases render as expected, but the last one puts the comment on a new line:
> (λ (x) 
>   1)
> ; 1
> 
> 
> Is there a way to get the following output:
> 
> (λ (x) 
>   1) ; 1
> 
> ?
> 
> Thanks,
> 
> -- Éric
> 
> 
> 
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users




Posted on the users mailing list.