Bump lipsum

This commit is contained in:
Laurenz 2022-06-13 19:44:57 +02:00
parent 2fe549c1ec
commit 891af17260
4 changed files with 4 additions and 6 deletions

2
Cargo.lock generated
View File

@ -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",

View File

@ -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"

View File

@ -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() {

View File

@ -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<Value> {
/// Create blind text.
pub fn lorem(_: &mut Machine, args: &mut Args) -> TypResult<Value> {
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.