tReplace WSP by "-" instead of "_" - scribo - Email-based phlog generator
HTML git clone git://git.z3bra.org/scribo.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 9d0eccfdc749b8243559903f6486188b4c8e4782
DIR parent d09787997bb6279189f3c39ef921ff2c1853a74d
HTML Author: Willy Goiffon <dev@z3bra.org>
Date: Tue, 8 Sep 2020 15:37:48 +0200
Replace WSP by "-" instead of "_"
Diffstat:
M scribo.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/scribo.c b/scribo.c
t@@ -59,8 +59,9 @@ sanitize(const char *s)
case '.':
*(w++) = *p;
break;
+ case '\t':
case ' ':
- *(w++) = '_';
+ *(w++) = '-';
break;
default:
if (isalnum(*p))