You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documentation of letter-simple, the sender name can be none, so I assume this behavior is not intended. I worked around the issue with this change, but being new to Typst, there is probably a cleaner fix:
// Configure page and text properties.
if sender.name != none {
set document(
title: subject,
author: sender.name
)
}
else {
set document(
title: subject,
)
}
And thanks for this project!
The text was updated successfully, but these errors were encountered:
Morwdan
added a commit
to Morwdan/typst-letter-pro
that referenced
this issue
Dec 28, 2024
Creating a letter without a sender name via
letter-simple
results in the following error…:…as the sender name is also used to specify the document author (which doesn’t seem to accept
none
):typst-letter-pro/src/lib.typ
Lines 536 to 540 in 0bc8f4c
According to the documentation of
letter-simple
, the sender name can be none, so I assume this behavior is not intended. I worked around the issue with this change, but being new to Typst, there is probably a cleaner fix:// Configure page and text properties. if sender.name != none { set document( title: subject, author: sender.name ) } else { set document( title: subject, ) }
And thanks for this project!
The text was updated successfully, but these errors were encountered: