Fixed windows fs path on setup_html2xhtml

This commit is contained in:
NA 2024-01-26 15:46:10 +00:00
parent 61036cf037
commit 1b0b9b57b3

View file

@ -30,7 +30,7 @@ pub fn remove_illegal_chars(mut string: String) -> String {
/// Setup html2xhtml in the operating system's temp directory.
pub fn setup_html2xhtml() -> TempDir {
#[cfg(target_os = "windows")] {
const HTML2XHTML: &[u8; 268299] = include_bytes!("../html2xhtml-windows.zip");
const HTML2XHTML: &[u8; 268299] = include_bytes!(r"..\html2xhtml-windows.zip");
let html2xhtml_dir = match TempDir::new("html2xhtml-windows") {
Ok(temp_dir) => temp_dir,
Err(error) => {