diff --git a/README.md b/README.md index 0c1c894..3121253 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ function in a show rule. If you want to change an existing project to use this template, you can add a show rule like this at the top of your file: ```typst -#import "@preview/solo-lu-df:1.1.1": * +#import "@preview/solo-lu-df:1.1.2": * #show: ludf.with( title: "Darba Nosaukums", diff --git a/examples/bachelor-thesis/main.typ b/examples/bachelor-thesis/main.typ index 2e45972..1397d37 100644 --- a/examples/bachelor-thesis/main.typ +++ b/examples/bachelor-thesis/main.typ @@ -1,4 +1,4 @@ -#import "@preview/solo-lu-df:1.1.1": * +#import "@preview/solo-lu-df:1.1.2": * #show: ludf.with( title: "Bakalaura Darba Nosaukums", diff --git a/examples/course-work/main.typ b/examples/course-work/main.typ index f826aac..244d27b 100644 --- a/examples/course-work/main.typ +++ b/examples/course-work/main.typ @@ -1,4 +1,4 @@ -#import "@preview/solo-lu-df:1.1.1": * +#import "@preview/solo-lu-df:1.1.2": * #show: ludf.with( title: "Kursa Darba Nosaukums", diff --git a/examples/master-thesis/main.typ b/examples/master-thesis/main.typ index 3dca9e8..a1a7c51 100644 --- a/examples/master-thesis/main.typ +++ b/examples/master-thesis/main.typ @@ -1,4 +1,4 @@ -#import "@preview/solo-lu-df:1.1.1": * +#import "@preview/solo-lu-df:1.1.2": * #show: ludf.with( title: "Maģistra Darba Nosaukums", diff --git a/src/lib.typ b/src/lib.typ index 85a8c67..e24e717 100644 --- a/src/lib.typ +++ b/src/lib.typ @@ -299,7 +299,7 @@ .children .filter(it => it.func() != linebreak) .fold((), (acc, it) => { - if it == [ ] and acc.last() == [ ] { + if it == [ ] and acc.len() > 0 and acc.last() == [ ] { acc } else { acc + (it,) diff --git a/template/main.typ b/template/main.typ index b29492b..bcbd06c 100644 --- a/template/main.typ +++ b/template/main.typ @@ -1,4 +1,4 @@ -#import "@preview/solo-lu-df:1.1.1": * +#import "@preview/solo-lu-df:1.1.2": * #show: ludf.with( title: "Darba Nosaukums", diff --git a/typst.toml b/typst.toml index 3c970f6..9521b98 100644 --- a/typst.toml +++ b/typst.toml @@ -1,6 +1,6 @@ [package] name = "solo-lu-df" -version = "1.1.1" +version = "1.1.2" entrypoint = "src/lib.typ" authors = ["Kristofers Solo "] license = "MIT-0"