这是indexloc提供的服务,不要输入任何密码
Skip to content

Stroke parsing error in stroke-len() #55

@igt-fred

Description

@igt-fred

Hello and first thenk you for this very useful package.

Sorry for the title, I did not find a better one.
Just wanted to mention a small error on one of my table (nothing special really):

error: cannot access fields on type none
    ┌─ \tablex.typ:456:38
    │
456 │  s = repr(stroke).match(r).captures.first()
    │                            ^^^^^^^^

Nothing blocking, I just bypassed it with something like:

455  let r = regex("thickness: (\\d+(?:em|pt|cm|in|%))")
456  s = repr(stroke).match(r).captures.first()
-----
455  let r = regex("thickness: (\\d+(?:em|pt|cm|in|%))")
456  let xx = repr(stroke).match(r)
457  if xx != none { s = xx.captures.first() }

But as I am new to Typst, I prefer to let you fix it properly ;)
Hope it helps...

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingregressionSomething was working before, but now isn't

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions