Skip to content

Commit

Permalink
Make sender.name optional as specified (#22)
Browse files Browse the repository at this point in the history
#21

Co-authored-by: Morwdan <5207513+Morwdan@users.noreply.github.com>
  • Loading branch information
Sematre and Morwdan authored Dec 30, 2024
1 parent 0bc8f4c commit d3b1a8a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/lib.typ
Original file line number Diff line number Diff line change
Expand Up @@ -534,10 +534,17 @@
)

// Configure page and text properties.
set document(
title: subject,
author: sender.name,
)
if sender.name != none {
set document(
title: subject,
author: sender.name
)
}
else {
set document(
title: subject,
)
}

set text(font: font, hyphenate: false)

Expand Down

0 comments on commit d3b1a8a

Please # to comment.