From: "Tom Alexander" <tom@fizz.buzz>
To: emacs-orgmode@gnu.org
Subject: COUNTER-SET for alphabetical ordered lists ignored for utf-8 exporter
Date: Fri, 29 Sep 2023 14:16:01 -0400 [thread overview]
Message-ID: <36a62fbf-6484-456f-9537-a7aa40530068@app.fastmail.com> (raw)
It seems that COUNTER-SET[1] is not being honored when exporting to utf-8 for alphabetical lists even though it is honored for numeric lists. When exporting to html, COUNTER-SET is honored for both.
Test document:
```
# An ordered list starting at 3
1. [@3] foo
# An ordered list starting at 1
m. bar
# An ordered list starting at 11
m. [@k] baz
```
Launching emacs with: (Setting org-list-allow-alphabetical is necessary or else the alphabetical lists will become paragraphs)
```
emacs -q --eval '(setq org-list-allow-alphabetical t)' /tmp/test.org
```
When exporting to html you get (edited to remove whitespace for clarity):
```
<ol class="org-ol"><li value="3">foo</li></ol>
<ol class="org-ol"><li>bar</li></ol>
<ol class="org-ol"><li value="11">baz</li></ol>
```
But when exporting to utf-8 you get: (whitespace removed again)
```
3. foo
m. bar
m. baz
```
Whereas I would expect: (whitespace removed again)
```
3. foo
m. bar
k. baz
```
On a slightly related note: it seems the COUNTER-SET[1] allows single-letter values even when org-list-allow-alphabetical is nil. I don't think that is going to hurt anyone but I figured I should mention it in case its a bug (test doc: `1. [@k] foo` is a plain list starting at 11 even when org-list-allow-alphabetical is nil).
[1] https://orgmode.org/worg/org-syntax.html#Items
Emacs 29.1, Org-mode version 9.7-pre (release_9.6.8-781-gc70354)
--
Tom Alexander
pgp: https://fizz.buzz/pgp.asc
next reply other threads:[~2023-09-29 18:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-29 18:16 Tom Alexander [this message]
2023-10-07 10:29 ` COUNTER-SET for alphabetical ordered lists ignored for utf-8 exporter Ihor Radchenko
2023-10-11 14:28 ` Tom Alexander
2023-10-20 10:15 ` [PATCH] [DISCUSSION] Force `tab-width' to be 8 in Org mode (was: COUNTER-SET for alphabetical ordered lists ignored for utf-8 exporter) Ihor Radchenko
2023-12-05 13:13 ` Ihor Radchenko
2023-10-20 10:18 ` COUNTER-SET for alphabetical ordered lists ignored for utf-8 exporter Ihor Radchenko
2024-04-05 17:06 ` Stacey Marshall
2024-04-06 12:02 ` Ihor Radchenko
2024-04-06 12:25 ` Stacey Marshall
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=36a62fbf-6484-456f-9537-a7aa40530068@app.fastmail.com \
--to=tom@fizz.buzz \
--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).