[racket] [slideshow/code] typesetting comments

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

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





Posted on the users mailing list.