Verified Commit a9feed56 authored by Jordan Petridis's avatar Jordan Petridis 🌱

Replace html2pango with html2text.

parent dea517c1
Pipeline #14569 passed with stages
in 18 minutes and 29 seconds
......@@ -24,7 +24,7 @@ failure_derive = "0.1.1"
regex = "1.0.0"
reqwest = "0.8.5"
serde_json = "1.0.17"
html2pango = { git = "https://gitlab.gnome.org/World/html2pango" }
html2text = "0.1.7"
[dependencies.gtk]
features = ["v3_22"]
......
......@@ -29,7 +29,7 @@ extern crate chrono;
extern crate crossbeam_channel;
extern crate hammond_data;
extern crate hammond_downloader;
extern crate html2pango;
extern crate html2text;
extern crate humansize;
extern crate loggerv;
extern crate open;
......
......@@ -4,7 +4,7 @@ use gtk::prelude::*;
use crossbeam_channel::{SendError, Sender};
use failure::Error;
use html2pango::markup_from_raw;
use html2text;
use open;
use rayon;
use send_cell::SendCell;
......@@ -124,7 +124,8 @@ impl ShowWidget {
/// Set the descripton text.
fn set_description(&self, text: &str) {
self.description.set_markup(&markup_from_raw(text));
self.description
.set_markup(&html2text::from_read(text.as_bytes(), 70));
}
/// Save the scrollabar vajustment to the cache.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment