Browse Source

ox-html: Can't activate jsinfo script during a body-only export

* lisp/ox-html.el (org-html-infojs-install-script): Can't activate
  jsinfo script during a body-only export.
Nicolas Goaziou 12 years ago
parent
commit
f3ef3eb549
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/ox-html.el

+ 2 - 1
lisp/ox-html.el

@@ -385,7 +385,8 @@ Option settings will replace the %MANAGER-OPTIONS cookie."
   "Install script in export options when appropriate.
 EXP-PLIST is a plist containing export options.  BACKEND is the
 export back-end currently used."
-  (unless (or (not org-html-use-infojs)
+  (unless (or (memq 'body-only (plist-get exp-plist :export-options))
+	      (not org-html-use-infojs)
 	      (and (eq org-html-use-infojs 'when-configured)
 		   (or (not (plist-get exp-plist :infojs-opt))
 		       (string-match "\\<view:nil\\>"