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.
This commit is contained in:
Jambunathan K 2011-10-31 14:08:03 +05:30
parent a62818d561
commit 8559a91be8
1 changed files with 1 additions and 1 deletions

View File

@ -1045,7 +1045,7 @@ to make available an enhanced version of `htmlfontify' library."
(when ref (when ref
(setq line (org-odt-format-target line (concat "coderef-" ref)))) (setq line (org-odt-format-target line (concat "coderef-" ref))))
(setq line (org-odt-format-stylized-paragraph par-style line)) (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)))) (org-odt-format-tags '("<text:list-item>" . "</text:list-item>") line))))
(defun org-odt-format-source-code-or-example-plain (defun org-odt-format-source-code-or-example-plain