ChHecker / unify

Format numbers, units, and ranges in Typst correctly.
MIT License
23 stars 17 forks source link

fix empty fraction when setting per: "/" but not using per #2

Closed scrouthtv closed 1 year ago

scrouthtv commented 1 year ago

Hello,

as I'm always using the fraction per-mode, I was able to set it by default using

#import "@preview/unify:0.4.1"
#let qty = unify.qty.with(per: "/")

However, this was giving me empty fractions when there was no unit in the denominator: grafik

(Of course, this also applies to calls to qty where per: "/" was specified directly inside the call)

This commit would fix this issue: grafik

ChHecker commented 1 year ago

Thank you for your contribution!