From d627a776de768177cb696d0154855b41db28d90e Mon Sep 17 00:00:00 2001 From: JonRC Date: Tue, 3 Nov 2026 02:26:55 -0300 Subject: [PATCH] Cite the PostScript Language Reference by its public URL --- crates/eps/src/import/interp.rs | 5 +++-- crates/eps/src/import/tests.rs | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/eps/src/import/interp.rs b/crates/eps/src/import/interp.rs index 3908bd41b..f44bf7132 100644 --- a/crates/eps/src/import/interp.rs +++ b/crates/eps/src/import/interp.rs @@ -1418,8 +1418,9 @@ fn index(k: &Obj) -> Res { } } -/// `known`: a key may be any object but null (PLRM 3rd ed.), and one that can't be a key here (an -/// array, a dictionary, a real with a fraction) is in no dictionary, since `put` refuses it. +/// `known`: a key may be any object but null (PLRM 3rd ed., §3.3.9, ), +/// and one that can't be a key here (an array, a dictionary, a real with a fraction) is in no +/// dictionary, since `put` here refuses it. fn known(d: &DictRef, k: &Obj) -> Res { match k.key() { Some(key) => Ok(d.borrow().contains_key(&key)), diff --git a/crates/eps/src/import/tests.rs b/crates/eps/src/import/tests.rs index 7435fc8b2..20593f0e6 100644 --- a/crates/eps/src/import/tests.rs +++ b/crates/eps/src/import/tests.rs @@ -996,7 +996,8 @@ fn the_standard_dictionaries_are_dictionaries_in_systemdict() { check("SharedFontDirectory type /dicttype eq"); } -/// A key may be any object but null (PLRM 3rd ed.), so `known` answers for every other key. +/// A key may be any object but null (PLRM 3rd ed., §3.3.9, ), +/// so `known` answers for every other key. /// Ghostscript's `eps2write` looks an inline image's filter up in a dictionary of abbreviations, /// and the filter may be an array of them. #[test]