From 8559a91be887dc2005cb24b27d2dd44bb00c7aaa Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Mon, 31 Oct 2011 14:08:03 +0530 Subject: [PATCH] org-odt.el: Fix a regression in export of src blocks * contrib/lisp/org-odt.el (org-odt-format-source-line-with-line-number-and-label): When numbering was turned off, src blocks were getting stripped from export. Fixed this regression. --- contrib/lisp/org-odt.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/lisp/org-odt.el b/contrib/lisp/org-odt.el index 874ae8a6d..10c7fe3ca 100644 --- a/contrib/lisp/org-odt.el +++ b/contrib/lisp/org-odt.el @@ -1045,7 +1045,7 @@ to make available an enhanced version of `htmlfontify' library." (when ref (setq line (org-odt-format-target line (concat "coderef-" ref)))) (setq line (org-odt-format-stylized-paragraph par-style line)) - (when num + (if (not num) line (org-odt-format-tags '("" . "") line)))) (defun org-odt-format-source-code-or-example-plain