emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Richard Lawrence <richard.lawrence@berkeley.edu>
To: emacs-orgmode@gnu.org
Subject: Bug? Or new behavior? Paragraphs in HTML
Date: Sat, 06 Sep 2014 09:31:28 -0700	[thread overview]
Message-ID: <87ppf83e3j.fsf@berkeley.edu> (raw)

Hi everyone,

After updating this morning, I notice that when

#+BEGIN_SRC org
* My headline
Some text here.
#+END_SRC

is exported to HTML, the paragraph below the headline is no longer
wrapped in a paragraph tag:

#+BEGIN_SRC html
<h2 id="sec-1"><span class="section-number-2">1</span> My headline</h2>
<div class="outline-text-2" id="text-1">
Some text here.
</div>
#+END_SRC

Whereas if there is more than one paragraph below the headline, they
are:

#+BEGIN_SRC org
* My headline
Some text here.

What about here?

Or here?
#+END_SRC 

becomes

#+BEGIN_SRC html
<h2 id="sec-1"><span class="section-number-2">1</span> My headline</h2>
<div class="outline-text-2" id="text-1">
<p>
Some text here.
</p>

<p>
What about here?
</p>

<p>
Or here?
</p>
</div>
#+END_SRC 

I am guessing this is the result of commit
9a34a13c077f592c5528d95c155ecdf2d655937e.

Is this now the expected behavior for paragraphs, even *outside* of
lists?  Personally I find this a bit unexpected.  It broke my CSS, and I
am not sure what the best way to fix it is.  What should I do if I want
to style all the blocks of text on a page, since some will be wrapped in
<p> tags and others won't be, depending on whether there are other
paragraphs in the same div?
 
Best,
Richard

             reply	other threads:[~2014-09-06 16:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-06 16:31 Richard Lawrence [this message]
2014-09-06 17:06 ` Bug? Or new behavior? Paragraphs in HTML Nicolas Goaziou

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=87ppf83e3j.fsf@berkeley.edu \
    --to=richard.lawrence@berkeley.edu \
    --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).