strip file names in html combiner

This commit is contained in:
Crispy 2023-01-14 20:43:48 +01:00
parent 8a8ad0cb21
commit a209989246
2 changed files with 2 additions and 2 deletions

View file

@ -1,2 +1,2 @@
default:
python3 html-combiner.py
./html-combiner.py

View file

@ -57,7 +57,7 @@ def get_included_name(contents):
marker_start, marker_end = get_marker_indices(contents)
name_start = marker_start + len(INCLUDE_MARKER)
name_end = marker_end
return contents[name_start:name_end]
return contents[name_start:name_end].strip()
def get_marker_indices(contents: str) -> tuple: