From e33747726c9d80249b4ed1fb1c0726af1d9b4ce5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 12 Jan 2021 18:36:17 +0000 Subject: [PATCH] otterlib: wip preview, show uos Signed-off-by: Ian Jackson --- src/bin/otterlib.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/bin/otterlib.rs b/src/bin/otterlib.rs index 98c757b9..4fddfa6f 100644 --- a/src/bin/otterlib.rs +++ b/src/bin/otterlib.rs @@ -140,12 +140,15 @@ fn preview(items: Vec) { let mut html = Html("".into()); pc.svg_piece(&mut html, &pri)?; println!("{}", html.0); -// -// println!(r#" width={} height={} {:?}"#, -// &viewport, size[0], size[1], &surround); -// println!("SVG\n{}\n\n", html.0); } println!(""); + + if max_uos > 0 { + println!(r#"{}"#, + uos.iter() + .map(|uo| Html::from_txt(uo).0) + .join(" ")); + } }; println!(""); } -- 2.30.2