Browse Source

Fix bad function name in preprocessor

master
Leon Etienne 6 months ago
parent
commit
96c938f351
  1. 4
      preprocessor.build-id.py

4
preprocessor.build-id.py

@ -10,7 +10,7 @@ import subprocess
buildId = subprocess.check_output(["git", "rev-parse", "--verify", "--short", "HEAD"]).decode('utf-8')[:-1]
def ReplaceExternalLinkTagsInChapter(chapter):
def ReplaceBuildIdTagsInChapter(chapter):
# Easy-peasy-lemon-squeezy regex substitution
chapter['content'] = re.sub(
r'<build-id />',
@ -19,7 +19,7 @@ def ReplaceExternalLinkTagsInChapter(chapter):
)
def Recursive_TraverseAllChapters(chapter):
ReplaceExternalLinkTagsInChapter(chapter)
ReplaceBuildIdTagsInChapter(chapter)
for subsection in chapter['sub_items']:
Recursive_TraverseAllChapters(subsection['Chapter'])

Loading…
Cancel
Save