emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug? Or new behavior? Paragraphs in HTML
@ 2014-09-06 16:31 Richard Lawrence
  2014-09-06 17:06 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Lawrence @ 2014-09-06 16:31 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug? Or new behavior? Paragraphs in HTML
  2014-09-06 16:31 Bug? Or new behavior? Paragraphs in HTML Richard Lawrence
@ 2014-09-06 17:06 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2014-09-06 17:06 UTC (permalink / raw)
  To: Richard Lawrence; +Cc: emacs-orgmode

Hello,

Richard Lawrence <richard.lawrence@berkeley.edu> writes:

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

[...]

> Is this now the expected behavior for paragraphs, even *outside* of
> lists?

No, it's a bug, which should now be fixed. Thank you.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-06 17:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-06 16:31 Bug? Or new behavior? Paragraphs in HTML Richard Lawrence
2014-09-06 17:06 ` Nicolas Goaziou

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