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:
fa7d15a
)
fix shapelib descs
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 26 Sep 2020 18:53:29 +0000
(19:53 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 26 Sep 2020 18:53:29 +0000
(19:53 +0100)
The article is in the desc.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/shapelib.rs
patch
|
blob
|
history
diff --git
a/src/shapelib.rs
b/src/shapelib.rs
index ee4539957db5caeab5b0e70a0b73633a201d143c..53c324e1222f49582b4f28c84591e63348b8760f 100644
(file)
--- a/
src/shapelib.rs
+++ b/
src/shapelib.rs
@@
-166,10
+166,10
@@
impl Piece for Item {
fn svg_x_defs(&self, _f: &mut Html, _pri : &PieceRenderInstructions) {
}
fn describe_html(&self, face : Option<FaceId>) -> Html {
-
Html(format!("a {}",
self.descs[ match face {
+ self.descs[ match face {
Some(face) => self.faces[face].desc,
None => self.desc_hidden,
- }].
0)
)
+ }].
clone(
)
}
}