mirror of
https://github.com/CrispyPin/crispypin.cc.git
synced 2024-11-10 04:00:27 +01:00
strip file names in html combiner
This commit is contained in:
parent
8a8ad0cb21
commit
a209989246
2 changed files with 2 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -1,2 +1,2 @@
|
||||||
default:
|
default:
|
||||||
python3 html-combiner.py
|
./html-combiner.py
|
|
@ -57,7 +57,7 @@ def get_included_name(contents):
|
||||||
marker_start, marker_end = get_marker_indices(contents)
|
marker_start, marker_end = get_marker_indices(contents)
|
||||||
name_start = marker_start + len(INCLUDE_MARKER)
|
name_start = marker_start + len(INCLUDE_MARKER)
|
||||||
name_end = marker_end
|
name_end = marker_end
|
||||||
return contents[name_start:name_end]
|
return contents[name_start:name_end].strip()
|
||||||
|
|
||||||
|
|
||||||
def get_marker_indices(contents: str) -> tuple:
|
def get_marker_indices(contents: str) -> tuple:
|
||||||
|
|
Loading…
Reference in a new issue