From: Ian Jackson Date: Sat, 26 Sep 2020 18:53:29 +0000 (+0100) Subject: fix shapelib descs X-Git-Tag: otter-0.2.0~888 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6fe0a609e049781a1b579b3382fd3dda3cf917cf;p=otter.git fix shapelib descs The article is in the desc. Signed-off-by: Ian Jackson --- diff --git a/src/shapelib.rs b/src/shapelib.rs index ee453995..53c324e1 100644 --- 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) -> Html { - Html(format!("a {}", self.descs[ match face { + self.descs[ match face { Some(face) => self.faces[face].desc, None => self.desc_hidden, - }].0)) + }].clone() } }