summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
Diffstat (limited to 'macros')
-rw-r--r--macros/helpdoc_system_macros/Cargo.toml1
-rw-r--r--macros/helpdoc_system_macros/src/lib.rs4
2 files changed, 5 insertions, 0 deletions
diff --git a/macros/helpdoc_system_macros/Cargo.toml b/macros/helpdoc_system_macros/Cargo.toml
index c5c8483..39a58cf 100644
--- a/macros/helpdoc_system_macros/Cargo.toml
+++ b/macros/helpdoc_system_macros/Cargo.toml
@@ -7,6 +7,7 @@ version.workspace = true
proc-macro = true
[dependencies]
+just_fmt.workspace = true
proc-macro2.workspace = true
quote.workspace = true
syn.workspace = true
diff --git a/macros/helpdoc_system_macros/src/lib.rs b/macros/helpdoc_system_macros/src/lib.rs
index a9008bf..ce85f87 100644
--- a/macros/helpdoc_system_macros/src/lib.rs
+++ b/macros/helpdoc_system_macros/src/lib.rs
@@ -67,6 +67,10 @@ fn scan_directory(dir: &Path, entries: &mut Vec<(String, String)>, base_dir: &Pa
doc_name.to_string()
};
+ let full_doc_name = just_fmt::fmt_path::fmt_path(full_doc_name)
+ .unwrap()
+ .to_string_lossy()
+ .to_string();
entries.push((full_doc_name, lang.to_string()));
}
}