chiark / gitweb /
clock: svg: Position secs explicitly
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 20 Mar 2021 16:50:17 +0000 (16:50 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 20 Mar 2021 21:42:20 +0000 (21:42 +0000)
The sigil might kern oddly

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/clock.rs

index 0eded2fe4819e9b7ce21a029b8d94f5e66231b19..c418ca0657be46a1b8df13595a2fad54389d720d 100644 (file)
@@ -308,11 +308,14 @@ impl PieceTrait for Clock {
   font-family="Latin Modern Mono, monospace" font-size="6" font-weight="700"
              "##;
       write!(f, r##"
-  <text x="1"  y="{}" {} fill="{}" >{}{}{}{:02}</text>"##,
-             y,
-             font,
-             show.text,
-             mins_pad, mins, show.sigil, secs
+  <text x="1"  y="{}" {} fill="{}" >{}{}{}</text>"##,
+             y, font, show.text,
+             mins_pad, mins, show.sigil
+      )?;
+      write!(f, r##"
+  <text x="14"  y="{}" {} fill="{}" >{:02}</text>"##,
+             y, font, show.text,
+             secs
       )?;
       if let Some(nick) = u.nick {
         write!(f, r##"