html_to_pango: Switch to use the new library spawn from this.

Thanks to @danigm for spinning that part of fractal to a shared library.
This commit is contained in:
Jordan Petridis
2018-04-03 19:42:09 +00:00
parent af1cb43bd6
commit a946ddfab1
5 changed files with 21 additions and 45 deletions
+5 -2
View File
@@ -1,8 +1,10 @@
// use dissolve;
use failure::Error;
// use glib;
use ammonia;
use gtk;
use gtk::prelude::*;
use html2pango::markup as html_to_pango_markup;
use open;
use hammond_data::Podcast;
@@ -10,7 +12,7 @@ use hammond_data::dbqueries;
// use hammond_data::utils::replace_extra_spaces;
use app::Action;
use utils::{html_to_pango_markup, set_image_from_path};
use utils::set_image_from_path;
// use utils::set_image_from_path;
use widgets::episode::episodes_listbox;
@@ -123,7 +125,8 @@ impl ShowWidget {
// markup.
// let desc = dissolve::strip_html_tags(text).join(" ");
// self.description.set_text(&replace_extra_spaces(&desc));
self.description.set_markup(&html_to_pango_markup(text));
self.description
.set_markup(&ammonia::clean(&html_to_pango_markup(text)));
}
/// Set scrolled window vertical adjustment.