Strip whitespace on inline slide fillers
This commit is contained in:
parent
67fef97868
commit
f824b13a27
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user