emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Bug? Or new behavior? Paragraphs in HTML


From: Richard Lawrence
Subject: [O] Bug? Or new behavior? Paragraphs in HTML
Date: Sat, 06 Sep 2014 09:31:28 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]