From a209989246eb2ffc81063f6e0dd5a2129eaf7adf Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Sat, 14 Jan 2023 20:43:48 +0100 Subject: [PATCH] strip file names in html combiner --- Makefile | 2 +- html-combiner.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f5f802b..2d325c7 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,2 @@ default: - python3 html-combiner.py \ No newline at end of file + ./html-combiner.py \ No newline at end of file diff --git a/html-combiner.py b/html-combiner.py index a557b67..a00bc27 100755 --- a/html-combiner.py +++ b/html-combiner.py @@ -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: