diff --git a/src/processors/html_cleanup.rs b/src/processors/head_cleanup.rs similarity index 87% rename from src/processors/html_cleanup.rs rename to src/processors/head_cleanup.rs index 1ab8142..0d4b679 100644 --- a/src/processors/html_cleanup.rs +++ b/src/processors/head_cleanup.rs @@ -2,7 +2,7 @@ use html::{sciter_start, get_html, destroy_matching, destroy_at, get_head}; use config::Config; -pub fn html_cleanup(config: Config, input: String) -> Result { +pub fn head_cleanup(config: Config, input: String) -> Result { let mut root = sciter_start(input); let mut head = get_head(&mut root); destroy_at(&mut head, 4); // Sciter doesnt like finding this style tag for some reason diff --git a/src/processors/mod.rs b/src/processors/mod.rs index 087eb97..50c9a75 100644 --- a/src/processors/mod.rs +++ b/src/processors/mod.rs @@ -1,8 +1,8 @@ use config::Config; -pub mod html_cleanup; +pub mod head_cleanup; pub mod strip_blank; pub const PROCESSORS: [fn(Config, String) -> Result; 2] = - [html_cleanup::html_cleanup, strip_blank::strip_blank]; + [head_cleanup::head_cleanup, strip_blank::strip_blank];