Browse Source

Fix some issues with org-xhtml export

* contrib/lisp/org-xhtml.el: require html (temporarily). This
makes sure that variables such as org-export-html-extension
etc referenced in org-exp.el and made available through
opt-plist are properly inited. Can be removed once the
org-export-xhtml namespace is annihilated.

* contrib/lisp/org-lparse.el (org-lparse-format-table): Export
of table.el tables were broken. Fix it. Can be removed once
the xhtml backend is annihilated.
Jambunathan K 14 years ago
parent
commit
fec6440a49
2 changed files with 4 additions and 3 deletions
  1. 3 1
      contrib/lisp/org-lparse.el
  2. 1 2
      contrib/lisp/org-xhtml.el

+ 3 - 1
contrib/lisp/org-lparse.el

@@ -1291,7 +1291,9 @@ version."
       (org-lparse-format-org-table lines nil)
     ;; Table made by table.el
     (or (org-lparse-format-table-table-using-table-generate-source
-	 org-lparse-backend olines
+	 ;; FIXME: Need to take care of this during merge
+	 (if (eq org-lparse-backend 'xhtml) 'html org-lparse-backend)
+	 olines
 	 (not org-export-prefer-native-exporter-for-tables))
 	;; We are here only when table.el table has NO col or row
 	;; spanning and the user prefers using org's own converter for

+ 1 - 2
contrib/lisp/org-xhtml.el

@@ -29,10 +29,9 @@
 ;;; Code:
 
 (require 'org-exp)
+(require 'org-html) 			; FIXME; remove during merge
 (require 'format-spec)
-
 (require 'org-lparse)
-
 (eval-when-compile (require 'cl) (require 'table) (require 'browse-url))
 
 (declare-function org-id-find-id-file "org-id" (id))