Skip to content

Commit

Permalink
Merge pull request #8 from nrmancuso/issue-7
Browse files Browse the repository at this point in the history
Issue #7: 'uservars.showNumber=false' leaves empty element in 'profiles'.

Replace function to filter for none elements in contact info line.
  • Loading branch information
jskherman committed Nov 25, 2023
2 parents 828fe89 + 793ecf2 commit 0f281f4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cv.typ
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,7 @@
if info.personal.url != none {
box(link(info.personal.url)[#info.personal.url.split("//").at(1)])
}
)

// Remove any none elements from the list
#if none in profiles {
profiles.remove(profiles.position(it => it == none))
}
).filter(it => it != none)

// Add any social profiles
#if info.personal.profiles.len() > 0 {
Expand Down

0 comments on commit 0f281f4

Please sign in to comment.