Rename function so it makes more sense
This commit is contained in:
parent
d4e46c3090
commit
bb43ebad70
2 changed files with 3 additions and 3 deletions
|
@ -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<String, String> {
|
||||
pub fn head_cleanup(config: Config, input: String) -> Result<String, String> {
|
||||
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
|
|
@ -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<String, String>; 2] =
|
||||
[html_cleanup::html_cleanup, strip_blank::strip_blank];
|
||||
[head_cleanup::head_cleanup, strip_blank::strip_blank];
|
||||
|
|
Reference in a new issue