chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cc1003
)
svg drop a level of nesting
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 5 Jul 2020 17:36:43 +0000
(18:36 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 5 Jul 2020 17:36:43 +0000
(18:36 +0100)
src/pieces.rs
patch
|
blob
|
history
diff --git
a/src/pieces.rs
b/src/pieces.rs
index 5448329ec7216238a9e068e3760c7d7f7e2f8b69..4f59851ad5824aaf92ce9c3d27601184934691fb 100644
(file)
--- a/
src/pieces.rs
+++ b/
src/pieces.rs
@@
-15,7
+15,7
@@
const SELECT_SCALE : f64 = 1.1;
impl Piece for SimpleShape {
fn svg_piece(&self, pri : &PieceRenderInstructions) -> String {
- format!(r##"<
g fill="{}"><use href="#{}"/></g
>"##,
+ format!(r##"<
use fill="{}" href="#{}"/
>"##,
self.colours[pri.face],
pri.id_x("base"))
}