From 4da551b600e906136a8ca0d1101ca8f81abd2288 Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Fri, 20 Jan 2012 00:08:18 +0530 Subject: [PATCH] Honor user-specified width in captioned images * lisp/org-odt.el (org-odt-format-textbox): Honor user-specified width in captioned images. Fix for bug reported here: http://lists.gnu.org/archive/html/emacs-orgmode/2012-01/msg00641.html --- lisp/org-odt.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org-odt.el b/lisp/org-odt.el index 7cff0462d..a21995b23 100644 --- a/lisp/org-odt.el +++ b/lisp/org-odt.el @@ -1765,7 +1765,8 @@ ATTR is a string of other attributes of the a element." (org-odt-format-tags '("" . "") text (concat (format " fo:min-height=\"%0.2fcm\"" (or height .2)) - (format " fo:min-width=\"%0.2fcm\"" (or width .2)))) + (unless width + (format " fo:min-width=\"%0.2fcm\"" (or width .2))))) width nil style extra anchor-type)) (defun org-odt-format-inlinetask (heading content -- 2.11.4.GIT