From 8218f9a52e30278d13cfb6acebd153f6aa5a6053 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Mon, 24 Jul 2023 19:44:33 +0200 Subject: [PATCH] utils: to_kebab_case: replace : with - - avoids filename issues on NTFS, consistent with automatic anchor generation - ref. https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/33 --- hecat/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hecat/utils.py b/hecat/utils.py index 0102300..bb2f795 100644 --- a/hecat/utils.py +++ b/hecat/utils.py @@ -16,6 +16,7 @@ def to_kebab_case(string): """convert a string to kebab-case, remove some special characters""" replacements = { ' ': '-', + ':': '-', '(': '', ')': '', '&': '',