diff options
| author | Sébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com> | 2023-04-05 15:04:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-05 15:04:31 +0200 |
| commit | 70a909b8badec1f14b67338a0e010e9a374866b8 (patch) | |
| tree | ad2d3f7b4e8060f5495cfe97db5ba47bfe7675c0 /src/eval/methods.rs | |
| parent | d569f6b33b8cebd6f48ff9935e7c88024bdad72a (diff) | |
Fixed page numbering (#594)
Diffstat (limited to 'src/eval/methods.rs')
| -rw-r--r-- | src/eval/methods.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eval/methods.rs b/src/eval/methods.rs index bfe9b0e4..b88bca50 100644 --- a/src/eval/methods.rs +++ b/src/eval/methods.rs @@ -154,6 +154,7 @@ pub fn call( match method { "page" => vm.vt.introspector.page(location).into(), "position" => vm.vt.introspector.position(location).into(), + "page-numbering" => vm.vt.introspector.page_numbering(location), _ => return missing(), } } else { @@ -308,7 +309,7 @@ pub fn methods_on(type_name: &str) -> &[(&'static str, bool)] { ], "function" => &[("where", true), ("with", true)], "arguments" => &[("named", false), ("pos", false)], - "location" => &[("page", false), ("position", false)], + "location" => &[("page", false), ("position", false), ("page-numbering", false)], "counter" => &[ ("display", true), ("at", true), |
