From 1de917329e96604c779ee139075487c7a2c9d4f8 Mon Sep 17 00:00:00 2001 From: Alexander <62144797+AlexanderHD27@users.noreply.github.com> Date: Mon, 25 May 2026 14:27:22 +0200 Subject: [PATCH] Fix assertion messages for Catmull-rom and Hobby curves --- src/draw/shapes.typ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/draw/shapes.typ b/src/draw/shapes.typ index ad75690c..a3ba8acb 100644 --- a/src/draw/shapes.typ +++ b/src/draw/shapes.typ @@ -1692,7 +1692,7 @@ #let catmull(..pts-style, close: false, name: none) = { let (pts, style) = (pts-style.pos(), pts-style.named()) - assert(pts.len() >= 2, message: "Catmull-rom curve requires at least two points. Got " + repr(pts.len()) + "instead.") + assert(pts.len() >= 2, message: "Catmull-rom curve requires at least two points. Got " + repr(pts.len()) + " instead.") return (ctx => { let (ctx, ..pts) = coordinate.resolve(ctx, ..pts) @@ -1764,7 +1764,7 @@ #let hobby(..pts-style, ta: auto, tb: auto, close: false, name: none) = { let (pts, style) = (pts-style.pos(), pts-style.named()) - assert(pts.len() >= 2, message: "Hobby curve requires at least two points. Got " + repr(pts.len()) + "instead.") + assert(pts.len() >= 2, message: "Hobby curve requires at least two points. Got " + repr(pts.len()) + " instead.") return (ctx => { let (ctx, ..pts) = coordinate.resolve(ctx, ..pts)