emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* XHTML export - Upper case <COL> tag is invalid XHTML
@ 2007-10-30 12:47 Øyvind Stegard
  0 siblings, 0 replies; only message in thread
From: Øyvind Stegard @ 2007-10-30 12:47 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

XML and therefore XHTML is case sensitive with regard to tag names.
Org-mode version 5.13h generates upper-case COL tags in XHTML-export,
which is invalid. The tag should be in lowercase. The patch below should
fix it.

--- org.el.orig	2007-10-30 13:34:18.000000000 +0100
+++ org.el	2007-10-30 13:30:40.000000000 +0100
@@ -24127,11 +24127,11 @@
     (unless splice (push "</table>\n" html))
     (setq html (nreverse html))
     (unless splice
-      ;; Put in COL tags with the alignment (unfortuntely often ignored...)
+      ;; Put in col tags with the alignment (unfortuntely often ignored...)
       (push (mapconcat
 	     (lambda (x)
 	       (setq gr (pop org-table-colgroup-info))
-	       (format "%s<COL align=\"%s\"></COL>%s"
+	       (format "%s<col align=\"%s\"></col>%s"
 		       (if (memq gr '(:start :startend))
 			   (prog1
 			       (if colgropen "</colgroup>\n<colgroup>" "<colgroup>")


Regards,
Øyvind Stegard

PS. I'm not a list subscriber, and only a light-weight org-mode user.
-- 
< Øyvind Stegard < oyvinst at ifi uio no >
 < http://www.oyvind.nu/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-30 12:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-30 12:47 XHTML export - Upper case <COL> tag is invalid XHTML Øyvind Stegard

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).