diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-08-21 19:08:47 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-08-21 19:08:47 +0200 |
| commit | c0377de653ed7c0ae0e253724cbbb622125fbd3f (patch) | |
| tree | d69237f632084f07ce04e6d877cdea451a03f295 /src/library/text.rs | |
| parent | 0dd4ae0a7ac0c247078df492469ff20b8a90c886 (diff) | |
Shorter/clearer field name for geometry types
Size { width, height } => Size { w, h }
Spec { horizontal, vertical } => Spec { x, y }
Gen { cross, main } => Gen { inline, block }
Diffstat (limited to 'src/library/text.rs')
| -rw-r--r-- | src/library/text.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/text.rs b/src/library/text.rs index 6154885c..bde2a9aa 100644 --- a/src/library/text.rs +++ b/src/library/text.rs @@ -136,7 +136,7 @@ pub fn lang(ctx: &mut EvalContext, args: &mut Arguments) -> TypResult<Value> { }; if let Some(dir) = dir { - ctx.template.modify(move |state| state.dirs.cross = dir); + ctx.template.modify(move |state| state.dirs.inline = dir); } ctx.template.parbreak(); |
