Commit 60142fa3 by Ralph Furmaniak

Fixed image captions by resetting caption_lines for each new image. Before, the…

Fixed image captions by resetting caption_lines for each new image.  Before, the n-th image would have the first n captions concatenated together.
parent 60c83ee3
......@@ -40,6 +40,7 @@ class ImagePreprocessor(markdown.preprocessors.Preprocessor):
except models.Image.DoesNotExist:
pass
line = line.replace(m.group(1), "")
caption_lines = []
elif previous_line_was_image:
if line.startswith(" "):
caption_lines.append(line[4:])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment