From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: org-mode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: HTML lists are including paragraphs (<li><p>…</p></li>)
Date: Wed, 06 Aug 2014 14:12:21 +0200 [thread overview]
Message-ID: <871tst24wq.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87egwvdtt1.fsf@gmail.com> (Eric Schulte's message of "Tue, 05 Aug 2014 08:06:50 -0400")
Hello,
Eric Schulte <schulte.eric@gmail.com> writes:
> The code which checks to ensure that paragraph wrappers are only
> inhibited if they are inhibited for the whole list mistakenly keeps
> paragraph wrappers if one item of the list is itself a list
>
> The location of this bug is the (cdr contents) in line 2899 of
> ox-html.el. I'd be inclined to remove this form, but I'm not sure what
> valid case it checks for.
This is more a misunderstanding that a bug. (cdr contents) tests if
there is anything after the current paragraph. In the following example,
1. hola
2. uno
- dos
3. tres
item "2." contains (paragraph plain-list), so (cdr contents) in not nil.
I understand that "paragraph is alone in its item" is not a good test to
skip paragraph wrappers. I'm still confused about what a good test would
be. In particular, what should be done in the following cases
- item
- item
- subist
resuming item
i.e., (paragraph plain-list paragraph), and
- outer
another paragraph
- inner
- simple list
i.e., are nested plain-lists independent relatively to paragraph
wrappers skipping. I think so, but I'd rather make sure.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2014-08-06 12:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-04 4:52 HTML lists are including paragraphs (<li><p>…</p></li>) Daniel Clemente
2014-08-04 19:25 ` Nick Dokos
2014-08-05 12:06 ` Eric Schulte
2014-08-06 12:12 ` Nicolas Goaziou [this message]
2014-08-25 7:48 ` Daniel Clemente
2014-08-25 8:30 ` Nicolas Goaziou
2014-08-26 7:36 ` Daniel Clemente
2014-08-26 7:59 ` Nicolas Goaziou
2014-08-27 14:50 ` Daniel Clemente
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=871tst24wq.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=schulte.eric@gmail.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.