Browse Source

fixes BUG in `org-export-as-latex' -- was only exporting the body

  This bug was introduced in commit

    1b40601ebd5de3746ab72d19d3258f815a402066

  which sets the body-only option to true when called with a simple
  prefix argument, however it does not check that the prefix argument
  is non-null.

  Thanks to Valentin Wüstholz for reporting this bug
Eric Schulte 15 years ago
parent
commit
e26deb647f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-latex.el

+ 1 - 1
lisp/org-latex.el

@@ -584,7 +584,7 @@ simply return the content of \begin{document}...\end{document},
 without even the \begin{document} and \end{document} commands.
 when PUB-DIR is set, use this as the publishing directory."
   (interactive "P")
-  (when (and (not body-only) (listp arg)) (setq body-only t))
+  (when (and (not body-only) arg (listp arg)) (setq body-only t))
   (run-hooks 'org-export-first-hook)
 
   ;; Make sure we have a file name when we need it.