Skip to content

Commit 69730dc

Browse files
committed
pict: fix ~number_from in rhombusblock_etc
1 parent 906fa09 commit 69730dc

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

rhombus-pict-lib/rhombus/pict/rhombus.rhm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def (render_line,
4949
| #'identifier || #'plain: p.colorize(current_identifier_color())
5050
| #'paren: p.colorize(current_paren_color())
5151
| #'comment: p.colorize(current_comment_color())
52+
| #'lineno: beside.baseline(p.colorize("blue").scale(0.8), rtt(" "))
5253
| ~else: p
5354
~render_in_space:
5455
fun (space, str, od,

rhombus-pict/info.rkt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"rhombus-draw"
1313
"rhombus-lib"
1414
"rhombus-scribble-lib"
15+
"rhombus-scribble" ; for `rhombusblock_etc` reference
1516
"rhombus-slideshow"))
1617

1718
(define pkg-desc "Rhombus functional-picture library")

rhombus-pict/rhombus/pict/scribblings/rhombus.scrbl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@(namespace ~open:
1212
import:
1313
meta_label:
14-
scribble/rhombus
14+
scribble/rhombus/manual open
1515
export scribble_rhombusblock_etc
1616
def scribble_rhombusblock_etc:
1717
@rhombus(rhombusblock_etc))

shrubbery-render-lib/shrubbery/render/private/render.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@
385385
[max-n (+ (sub1 len) number-from)])
386386
(define s (number->string n))
387387
(define max-s (number->string max-n))
388-
(string-append
388+
(string-append-immutable
389389
(make-string (- (string-length max-s) (string-length s)) #\space)
390390
s
391391
" "))))

0 commit comments

Comments
 (0)