[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: table.el downcase HTML tags
From: |
Ted Zlatanov |
Subject: |
Re: table.el downcase HTML tags |
Date: |
Tue, 30 May 2006 16:18:29 -0400 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
On 30 May 2006, address@hidden wrote:
> I do not know of any case where uppercase tags is useful. Are there
> really any such cases?
Old, badly written parsers may look for "TABLE" and break with
"table". Generally, why break old behavior if it can be left in as an
option?
For table.el, why not define something like this:
(defcustom table-uppercase-html-tags nil
"*All generated HTML tags are in uppercase when this is set."
:tag "Uppercase HTML tags"
:type 'boolean
:group 'table)
(defun table--generate-source-html-tag (tag-symbol text &optional options)
(let ((tag-symbol (if table-uppercase-html-tags
(upcase tag-symbol)
tag-symbol)))
(format "<%s %s> %s </%s>" tag-symbol options text tag-symbol)))
This would also simplify a lot of the table.el code that generates HTML :)
Ted
Re: table.el downcase HTML tags, Carsten Dominik, 2006/05/31
Re: table.el downcase HTML tags, Kim F. Storm, 2006/05/31