emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daniel Clemente <n142857@gmail.com>
To: Eric Schulte <schulte.eric@gmail.com>,
	org-mode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: HTML lists are including paragraphs (<li><p>…</p></li>)
Date: Mon, 25 Aug 2014 14:48:09 +0700	[thread overview]
Message-ID: <87vbphrow6.wl-n142857@gmail.com> (raw)
In-Reply-To: <871tst24wq.fsf@nicolasgoaziou.fr>

El Wed, 06 Aug 2014 14:12:21 +0200 Nicolas Goaziou va escriure:
> 
> 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
>     - sublist
>     resuming item
>

  You mean „item“ contains text+ol+p? Rather strange… I first thought that „resuming item“ would be a continuation line of „sublist“ (that is, as if „sublist resuming item“ were the only item of the sublist).
  But why not, as a general rule, avoid <p> for the first elements of lists? That is, don't output paragraph+list+paragraph, but text+list+paragraph.
  This works for the simple case (<li>text</li>) and allows the complex ones (<li>text<p>aa</p><ol></ol><whatever></whatever></li>).

  
> 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.
> 

I'd also say text+p+ol.

Rather unusual syntax anyway… but it shouldn't break the simple <li>Plain item</li> (now broken).

  reply	other threads:[~2014-08-25  7:48 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
2014-08-25  7:48     ` Daniel Clemente [this message]
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

  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=87vbphrow6.wl-n142857@gmail.com \
    --to=n142857@gmail.com \
    --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 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).