From 932ae93d6ebacdc5b953a2db7ff2aeb81df86295 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 12 Jan 2021 01:13:11 +0000 Subject: [PATCH] otterlib: wip preview, wip inseveral Signed-off-by: Ian Jackson --- src/bin/otterlib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bin/otterlib.rs b/src/bin/otterlib.rs index 904e9253..ba8a3ba3 100644 --- a/src/bin/otterlib.rs +++ b/src/bin/otterlib.rs @@ -108,6 +108,12 @@ fn preview(items: Vec) { assert!(!s.want_several()); print!(r#" colspan="{}""#, max_facecols); } + print!(r##" bgcolor="#{}""##, + match inseveral { + 0 | 1 => "eee", + 2 => "555", + _ => panic!(), + }); println!(r#">"#); if face < (pc.nfaces() as usize) { let pri = getpri(face.into()); -- 2.30.2