Add an newline before a caption line in a figure directive. fix #6

This commit is contained in:
IGARASHI Masanao
2015-01-11 19:04:19 +09:00
parent 8d855059ad
commit 43a7e74636

View File

@@ -1079,7 +1079,7 @@ INFO is a plist holding contextual information."
(expand-file-name raw-path))) (expand-file-name raw-path)))
(caption (org-export-get-caption (caption (org-export-get-caption
(org-export-get-parent-element link)))) (org-export-get-parent-element link))))
(if caption (format ".. figure:: %s%s\n %s\n" ipath attributes (if caption (format ".. figure:: %s%s\n\n %s\n" ipath attributes
(org-export-data caption info)) (org-export-data caption info))
(format ".. image:: %s%s\n" ipath attributes)))) (format ".. image:: %s%s\n" ipath attributes))))
((and (plist-get info :rst-inline-images) ((and (plist-get info :rst-inline-images)