emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Adam Spiers <orgmode@adamspiers.org>
To: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: <ul> HTML export bug?
Date: Mon, 11 Feb 2008 14:30:10 +0000	[thread overview]
Message-ID: <20080211143010.GB16689@atlantic.linksys.moosehall> (raw)

Test case with recent git clone:

--------- 8< --------- 8< --------- 8< --------- 8< --------- 8< ---------
#+OPTIONS: H:1 toc:nil

* Heading
** Sub-heading a
** Sub-heading b
   This is some paragraph text.
** Sub-heading c
   This is some paragraph text.
--------- 8< --------- 8< --------- 8< --------- 8< --------- 8< ---------

generates:

--------- 8< --------- 8< --------- 8< --------- 8< --------- 8< ---------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
               "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

[snipped]

<body>
<h1 class="title">test</h1>

<div class="outline-2">
<h2>1 Heading</h2>

<ul>
<li>Sub-heading a<br/>
</li>
</ul>
<ul>
<li>Sub-heading b<br/>
This is some paragraph text.
</li>
</ul>
<ul>
<li>Sub-heading c<br/>
This is some paragraph text.
</li>
</ul>
</div>
<div id="postamble"><p class="author"> Author: Adam Spiers
<a href="mailto:adam@spiers.net">&lt;adam@spiers.net&gt;</a>
</p>
<p class="date"> Date: 2008/02/11 14:24:27</p>
</div></body>
--------- 8< --------- 8< --------- 8< --------- 8< --------- 8< ---------

Each sub-heading becomes a singleton unordered list, which results in
unwanted spacing in between each.  Also, couldn't the <br/> be
replaced with <p> ?  So ideally I would expect the following
instead:

--------- 8< --------- 8< --------- 8< --------- 8< --------- 8< ---------
<ul>
  <li>Sub-heading a
  </li>
  <li>Sub-heading b
    <p>This is some paragraph text.</p>
  </li>
  <li>Sub-heading c
    <p>This is some paragraph text.</p>
  </li>
</ul>
--------- 8< --------- 8< --------- 8< --------- 8< --------- 8< ---------

Thanks!

             reply	other threads:[~2008-02-11 14:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-11 14:30 Adam Spiers [this message]
2008-02-12  9:27 ` <ul> HTML export bug? 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=20080211143010.GB16689@atlantic.linksys.moosehall \
    --to=orgmode@adamspiers.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).