From 43a7e74636bb76bc4451e0d06cf0499e6874246e Mon Sep 17 00:00:00 2001 From: IGARASHI Masanao Date: Sun, 11 Jan 2015 19:04:19 +0900 Subject: [PATCH] Add an newline before a caption line in a figure directive. fix #6 --- ox-rst.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox-rst.el b/ox-rst.el index a8e86d9..3247d09 100644 --- a/ox-rst.el +++ b/ox-rst.el @@ -1079,7 +1079,7 @@ INFO is a plist holding contextual information." (expand-file-name raw-path))) (caption (org-export-get-caption (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)) (format ".. image:: %s%s\n" ipath attributes)))) ((and (plist-get info :rst-inline-images)