emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matthew Lundin <mdl@imapmail.org>
To: Matthew Lundin <mdl@imapmail.org>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: Feature request (org-empty-line-terminates-plain-lists)
Date: Mon, 23 Mar 2009 18:08:54 -0500	[thread overview]
Message-ID: <m2wsafbzw9.fsf@fastmail.fm> (raw)
In-Reply-To: <877i2g53px.fsf@fastmail.fm> (Matthew Lundin's message of "Mon\, 23 Mar 2009 16\:28\:10 -0500")

Carsten,

Matthew Lundin <mdl@imapmail.org> writes:

> If I may be so bold, I'd like to request an additional setting for
> org-empty-line-terminates-plain-lists. Namely, I was wondering if it
> would be possible to add an option whereby 2 empty lines would terminate
> a plain list.

Please disregard this request. I think I did not identify the problem
correctly. The problem, instead, lies in the html export.

When a plain list is followed by a paragraph, the list is closed in the
the export before the paragraph.

--8<---------------cut here---------------start------------->8---
- Item One

- Item Two

Here is the paragraph.
--8<---------------cut here---------------end--------------->8---

results in....

,----
| <ul>
| <li>
| Item One
| 
| </li>
| <li>
| Item Two
| 
| </li>
| </ul>
| 
| <p>Here is the paragraph.
| </p>
`----

But when a table follows the list, as in...

--8<---------------cut here---------------start------------->8---
- Item One

- Item Two

| Table cell | Another table cell |
--8<---------------cut here---------------end--------------->8---

...the table is enclosed in the list in the html:

,----
| <ul>
| <li>
| Item One
| 
| </li>
| <li>
| Item Two
| 
| <table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
| <caption></caption>
| <col align="left"></col><col align="left"></col>
| <tbody>
| <tr><td>Table cell</td><td>Another table cell</td></tr>
| </tbody>
| </table>
| 
| </li>
| </ul>
`----

In the latex output, by contrast, the list is closed before the table
appears.

,----
| \begin{itemize}
| \item Item One
| \item Item Two
| \end{itemize}
| 
| \begin{center}
| \begin{tabular}{ll}
|  Table cell  &  Another table cell  \\
| \end{tabular}
| \end{center}
`----

Would it be possible to make the html output consistent with the latex
output, so that the list is closed before the table?

Thanks, and sorry for making you read that earlier email about a
non-problem. :)

Matt

  reply	other threads:[~2009-03-23 23:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-23 21:28 Feature request (org-empty-line-terminates-plain-lists) Matthew Lundin
2009-03-23 23:08 ` Matthew Lundin [this message]
2009-03-24  6:15   ` Baoqiu Cui
2009-03-24  8:48     ` Carsten Dominik
2009-03-24 23:13       ` Matthew Lundin
2009-03-25  6:37       ` Baoqiu Cui
2009-06-08 17:59         ` Carsten Dominik
2009-03-25  6:49 ` Samuel Wales

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=m2wsafbzw9.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --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).