Strip whitespace on inline slide fillers

This commit is contained in:
Florian 2025-11-23 12:13:12 +01:00
parent 67fef97868
commit f824b13a27

View File

@ -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"<p>(.+)</p>", r"\1", filler, flags=re.DOTALL)
filler_without_outer_paragraph = re.sub(r"<p>(.+)</p>", r"\1", filler, flags=re.DOTALL).strip()
slide = slide.replace(
inline_key,
filler_without_outer_paragraph