diff --git a/private/lp.rkt b/private/lp.rkt index 581997d7..467fac12 100644 --- a/private/lp.rkt +++ b/private/lp.rkt @@ -110,7 +110,9 @@ rest ...)))) (#,racketblock expr ...)))) #`(begin - (require (for-label for-label-mod ... ...)) + #,@(if (null? (syntax-e #'(for-label-mod ... ...))) + #'() + #'((require (for-label for-label-mod ... ...)))) #,@(if n #'() #'((define-syntax name (make-element-id-transformer diff --git a/scribblings/hyper-literate.scrbl b/scribblings/hyper-literate.scrbl index ac6c03b9..8a15f25b 100644 --- a/scribblings/hyper-literate.scrbl +++ b/scribblings/hyper-literate.scrbl @@ -21,8 +21,8 @@ that it is possible to directly write @racketmodname[typed/racket] programs with @racketmodname[hyper-literate], for example). -On the first line, which begins with @tt{#lang - hyper-literate}, the language recognises the following +On the first line, which begins with @tt{@litchar{#lang} + @racketmodname[hyper-literate]}, the language recognises the following options: @(require scribble/core @@ -113,6 +113,7 @@ their result, etc. @; or: @; @defmodulelang[scribble/lp2 #:use-sources (scribble/lp)]{…} @; in scribble-doc/scribblings/scribble/lp.scrbl +@; See scribble bug #51 https://github.com/racket/scribble/issues/51 @(define scribble-chunk (element symbol-color (make-link-element value-link-color