From eb6c6563b471d8f0ff3f87dc9f2b891d64f1a138 Mon Sep 17 00:00:00 2001 From: IGARASHI Masanao Date: Sun, 16 Nov 2014 09:47:07 +0900 Subject: [PATCH] Add line break for image/figure directive --- ox-rst.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ox-rst.el b/ox-rst.el index 398eaf1..be358c5 100644 --- a/ox-rst.el +++ b/ox-rst.el @@ -1038,9 +1038,9 @@ 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" ipath attributes + (if caption (format ".. figure:: %s%s\n %s\n" ipath attributes (org-export-data caption info)) - (format ".. image:: %s%s" ipath attributes)))) + (format ".. image:: %s%s\n" ipath attributes)))) ;; Radio link: Transcode target's contents and use them as link's ;; description. ((string= type "radio")