From 0c2b5e095f2395d418aeb88a4f4865668053b5d0 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 21 Apr 2024 00:47:05 +0100 Subject: [PATCH] fix trailing hyphen --- scripts/make-folklist.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/make-folklist.py b/scripts/make-folklist.py index e2389e6ee..c37e67f7a 100644 --- a/scripts/make-folklist.py +++ b/scripts/make-folklist.py @@ -35,6 +35,7 @@ def troggle_slugify(longname): slug = slug.replace('&', '') # otherwise just remove the & slug = slug.replace(';', '') # otherwise just remove the ; slug = re.sub(r'<[^>]*>','',slug) # remove + slug=slug.strip("-") # remove spare hyphens if len(slug) > 40: # slugfield is 50 chars slug = slug[:40]