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
|
# very unelegant attempt at inline elements
|
||||||
inline_key = '@' + key + '(inline)'
|
inline_key = '@' + key + '(inline)'
|
||||||
if inline_key in slide:
|
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(
|
slide = slide.replace(
|
||||||
inline_key,
|
inline_key,
|
||||||
filler_without_outer_paragraph
|
filler_without_outer_paragraph
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user