summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJambunathan K <kjambunathan@gmail.com>2011-10-31 14:08:03 +0530
committerJambunathan K <kjambunathan@gmail.com>2011-10-31 14:09:36 +0530
commit8559a91be887dc2005cb24b27d2dd44bb00c7aaa (patch)
treef9806b15adc22498b8483a64fe2568ccc0e52c73
parenta62818d5615ed58f777490ccd975dd9729f4f814 (diff)
downloadorg-mode-8559a91be887dc2005cb24b27d2dd44bb00c7aaa.tar.gz
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.
-rw-r--r--contrib/lisp/org-odt.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/lisp/org-odt.el b/contrib/lisp/org-odt.el
index 874ae8a..10c7fe3 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 '("<text:list-item>" . "</text:list-item>") line))))
(defun org-odt-format-source-code-or-example-plain