From ff93c5c2f699580c2c7418924e3f23e69c83ff7b Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Wed, 23 Aug 2023 01:23:23 -0700 Subject: [PATCH] sphinxtogithub: keep the trailing / separator def relative_path() relies on being able to replace values including the / separator. Keep it there to retain the original behavior. Related-to: #1336 Ref: 1293e189ee79703e23870f37feda61b44f635a98 Signed-off-by: David Aguilar (cherry picked from commit a4b0d2741cc218e469b02fe62758804ebb628d2b) --- extras/sphinxtogithub/sphinxtogithub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/sphinxtogithub/sphinxtogithub.py b/extras/sphinxtogithub/sphinxtogithub.py index 10a0b8ef4..fff9f7df9 100644 --- a/extras/sphinxtogithub/sphinxtogithub.py +++ b/extras/sphinxtogithub/sphinxtogithub.py @@ -98,7 +98,7 @@ class DirectoryHandler(object): def __init__(self, name, root, renamer): self.name = name self.new_name = name[1:] - self.root = str(root) + self.root = str(root) + os.sep self.renamer = renamer def path(self):