From f824b13a27f2e97b2d65a10f603d2c89637bd435 Mon Sep 17 00:00:00 2001 From: Florian Date: Sun, 23 Nov 2025 12:13:12 +0100 Subject: [PATCH] Strip whitespace on inline slide fillers --- slides.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slides.py b/slides.py index 4ade96a..a29f3b9 100755 --- a/slides.py +++ b/slides.py @@ -26,7 +26,7 @@ def compile_slide(slide, root_directory): # very unelegant attempt at inline elements inline_key = '@' + key + '(inline)' if inline_key in slide: - filler_without_outer_paragraph = re.sub(r"

(.+)

", r"\1", filler, flags=re.DOTALL) + filler_without_outer_paragraph = re.sub(r"

(.+)

", r"\1", filler, flags=re.DOTALL).strip() slide = slide.replace( inline_key, filler_without_outer_paragraph