Skip to content

Commit dcf8013

Browse files
committed
Fixes scribble bug #25
1 parent c34a69c commit dcf8013

File tree

1 file changed

+5
-5
lines changed
  • scribble-lib/scribble/private

1 file changed

+5
-5
lines changed

scribble-lib/scribble/private/lp.rkt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
(identifier? #'name)
2323
(let* ([n (get-chunk-number (syntax-local-introduce #'name))]
2424
[str (symbol->string (syntax-e #'name))]
25-
[tag (format "~a:~a" str (or n 1))])
25+
[tag (format "chunk:~a:~a" str (or n 1))])
2626

2727
(when n
2828
(inc-chunk-number (syntax-local-introduce #'name)))
@@ -61,9 +61,9 @@
6161
(make-splice
6262
(list (make-toc-element
6363
#f
64-
(list (elemtag '(chunk tag)
64+
(list (elemtag '(prefixable tag)
6565
(bold (italic (racket name)) " ::=")))
66-
(list (smaller (elemref '(chunk tag) #:underline? #f
66+
(list (smaller (elemref '(prefixable tag) #:underline? #f
6767
str
6868
rest (... ...)))))
6969
(racketblock expr (... ...)))))))])))
@@ -75,9 +75,9 @@
7575
(syntax-case stx ()
7676
[(_ id)
7777
(identifier? #'id)
78-
(with-syntax ([tag (format "~a:1" (syntax-e #'id))]
78+
(with-syntax ([tag (format "chunk:~a:1" (syntax-e #'id))]
7979
[str (format "~a" (syntax-e #'id))])
80-
#'(elemref '(chunk tag) #:underline? #f str))]))
80+
#'(elemref '(prefixable tag) #:underline? #f str))]))
8181

8282

8383
(provide (all-from-out scheme/base

0 commit comments

Comments
 (0)