emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Josiah Schwab <jschwab@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Ordered List (Alphabetical) and HTML Export
Date: Thu, 30 May 2013 11:57:44 -0700	[thread overview]
Message-ID: <51a7a129.901a420a.1422.197b@mx.google.com> (raw)

Hi All,

I am using orgmode 8.0.3 with emacs 24.3.  I frequently use
ordered lists with alphabetical bullets.  I have
  (setq org-list-allow-alphabetical t)
in my .emacs.

I just noticed that when I export an alphabetical list using the HTML
exporter, it appears as a numerical list in the rendered HTML.  My
expectation was that the ol tags for this list would look like <ol
type="a">, but instead they are just plain <ol>. (At the end of the
message is a snippet that lets you reproduce this.)

From poking around in ox-html.el (specfically, looking at
org-html-begin-plain-list), I see that there is no code that handles
the list "type".

I spent a few minutes looking at org-list.el, but I'm new enough to
both org-mode and elisp, that I couldn't immediately see how to extend
org-html-begin-plain-list so that it could figure out the kind of list
bullet and properly set the type.

Could anyone help walk me through what one would need to do to get the
desired behavior of HTML export preserving alphabetically bulleted
lists?

Best,
Josiah Schwab

P.S.  Here's an example org snippet.

* Letters
a. foo
b. bar
c. baz
* Numbers
1. foo
2. bar
3. baz

             reply	other threads:[~2013-05-30 18:57 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-30 18:57 Josiah Schwab [this message]
2013-06-30 21:45 ` Ordered List (Alphabetical) and HTML Export Bastien
2013-07-01  9:42   ` Nicolas Goaziou
2013-07-01 10:15     ` Bastien
2013-07-01 10:21       ` Bastien
2013-07-01 10:49         ` Sebastien Vauban
2013-07-01 11:49       ` Nicolas Goaziou
2013-07-01 12:54         ` Bastien
2013-07-01 13:49           ` Nicolas Goaziou
2013-07-01 14:13             ` Jambunathan K
2013-07-01 14:19             ` Bastien
2013-07-01 14:32             ` Bastien
2013-07-01 14:29         ` Carsten Dominik

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=51a7a129.901a420a.1422.197b@mx.google.com \
    --to=jschwab@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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 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).