all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
Subject: Re: table.el downcase HTML tags
Date: Tue, 30 May 2006 16:18:29 -0400	[thread overview]
Message-ID: <g69irnnxo4q.fsf@CN1374059D0130.kendall.corp.akamai.com> (raw)
In-Reply-To: 447CA3DC.4060006@student.lu.se

On 30 May 2006, lennart.borgman.073@student.lu.se 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

  reply	other threads:[~2006-05-30 20:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-30 17:13 table.el downcase HTML tags Tak Ota
2006-05-30 19:23 ` Mathias Dahl
2006-05-30 19:58   ` Lennart Borgman
2006-05-30 20:18     ` Ted Zlatanov [this message]
2006-05-30 22:08       ` Stuart D. Herring
2006-05-30 22:42         ` Lennart Borgman
2006-05-31 14:33         ` Ted Zlatanov
2006-05-31  7:52       ` Kim F. Storm
2006-05-31 14:26         ` Ted Zlatanov
2006-05-31 15:10           ` Kim F. Storm
2006-05-30 21:00     ` Kevin Rodgers
2006-05-31 14:19   ` Carsten Dominik
2006-05-31  8:00 ` Kim F. Storm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=g69irnnxo4q.fsf@CN1374059D0130.kendall.corp.akamai.com \
    --to=tzz@lifelogs.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.