Skip to content

Commit

Permalink
fix style errors
Browse files Browse the repository at this point in the history
Signed-off-by: Birgit Brecknell <b@brck.nl>
  • Loading branch information
bbrcknl committed Aug 12, 2024
1 parent ab0dace commit 59352eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions template.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

from io import StringIO


def build_render_list(args):
'''
This function is pretty gross. It will likely be removed once the
Expand Down Expand Up @@ -82,13 +83,13 @@ def render_file(args, env, state, file):
input = in_stream.read()
template = env.from_string(input)

if(args.__getattribute__("docsite")):
if (args.__getattribute__("docsite")):
s = StringIO(input)
lines = input.split('\n')

i = 0
for line in s:
lines[i] = line.replace("https://docs.sel4.systems/Tutorials/","/Tutorials/")
lines[i] = line.replace("https://docs.sel4.systems/Tutorials/", "/Tutorials/")
i = i + 1

new_text = ''.join(lines)
Expand Down

0 comments on commit 59352eb

Please sign in to comment.