diff --git a/Cargo.lock b/Cargo.lock index 7f0b81a6b..d9d959d3a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -321,7 +321,7 @@ checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" [[package]] name = "lipsum" version = "0.8.2" -source = "git+https://github.com/reknih/lipsum#d6d8f2cba12f8dee8c8ed4af62858cdb061c0801" +source = "git+https://github.com/reknih/lipsum#025427353ab32268daa3d96feda380a96db529c5" dependencies = [ "rand", "rand_chacha", diff --git a/Cargo.toml b/Cargo.toml index 8db050c2b..db9fb5c7e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ typst-macros = { path = "./macros" } # Utilities bytemuck = "1" fxhash = "0.2" -lipsum = { git = "https://github.com/reknih/lipsum", default-features = false } +lipsum = { git = "https://github.com/reknih/lipsum" } once_cell = "1" serde = { version = "1", features = ["derive"] } typed-arena = "2" diff --git a/src/frame.rs b/src/frame.rs index 6855e7ac2..77545d069 100644 --- a/src/frame.rs +++ b/src/frame.rs @@ -176,7 +176,7 @@ impl Frame { return; } - // Try to copy the elements without adjusting the positioned. + // Try to copy the elements without adjusting the position. // Also try to reuse the elements if the Arc isn't shared. let range = layer .. layer; if pos.is_zero() { diff --git a/src/library/utility/string.rs b/src/library/utility/string.rs index 3036df062..ecfded2ba 100644 --- a/src/library/utility/string.rs +++ b/src/library/utility/string.rs @@ -1,5 +1,3 @@ -use lipsum::lipsum_from_seed; - use crate::eval::Regex; use crate::library::prelude::*; @@ -22,7 +20,7 @@ pub fn str(_: &mut Machine, args: &mut Args) -> TypResult { /// Create blind text. pub fn lorem(_: &mut Machine, args: &mut Args) -> TypResult { let words: usize = args.expect("number of words")?; - Ok(Value::Str(lipsum_from_seed(words, 97).into())) + Ok(Value::Str(lipsum::lipsum(words).into())) } /// Create a regular expression.