chiark / gitweb /
clock: svg adjustments
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 18 Mar 2021 23:25:48 +0000 (23:25 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 20 Mar 2021 20:12:41 +0000 (20:12 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/clock.rs

index a985a43e78aac20d52982d45d6d080d04142ba04..9034333cdce292dd4a6b80626dc316ba85e7694f 100644 (file)
@@ -282,7 +282,7 @@ impl PieceTrait for Clock {
 
       write!(f, r##"
   <text x="1"  y="{}" font-family="Latin Modern Mono, monospace" font-size="6"
-   font-weight="700"f ill="{}" >{:3>}{}{:02}</text>"##,
+   font-weight="700"f ill="{}" >{:>3}{}{:02}</text>"##,
              y,
              show.text,
              mins,
@@ -298,8 +298,9 @@ impl PieceTrait for Clock {
         )?;
       } else {
         write!(f, r##"
-  <text x="23" y="13" fill="pink" stroke="red" 
-   stroke-width="0.1" font-size="8">&nbsp;&nbsp;-</text>"##
+  <text x="23" y="{}" fill="pink" stroke="red" 
+   stroke-width="0.1" font-size="8">&nbsp;&nbsp;-</text>"##,
+               y
         )?;
       }
     }