fix fucked link tags

master
Ondřej Hruška 6 years ago
parent 1657c72d34
commit 675e4ef65f
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 2
      src/main.rs

@ -178,7 +178,7 @@ fn main() {
let mut pics = String::new();
for img in &bread.images {
pics.push_str(&format!("<a href=\"{src}\"><img src=\"{src}\"><a/>", src=&utf8_percent_encode(img.to_str().unwrap(), DEFAULT_ENCODE_SET).to_string()))
pics.push_str(&format!("<a href=\"{src}\"><img src=\"{src}\"></a>", src=&utf8_percent_encode(img.to_str().unwrap(), DEFAULT_ENCODE_SET).to_string()))
}
let detail = detail.replace("{images}", &pics);

Loading…
Cancel
Save