emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Literal HTML export and paragraphs


From: Carsten Dominik
Subject: Re: [Orgmode] Literal HTML export and paragraphs
Date: Mon, 29 Mar 2010 11:51:11 +0200

Hi Ulf,

On Feb 23, 2010, at 1:58 PM, Ulf Stegemann wrote:

Hi,

not quite sure if that's a bug but I've just noticed that literal HTML
export with `#+HTML' or `#+BEGIN_HTML ...' suppresses paragraph markups whenever literal export appears at the end of a paragraph. An org file
like this

,----
| line 1
| line 2
|
| line 3
`----

is exported to

,----
| <p>
| line 1
| line 2
| </p>
| <p>
| line 3
| </p>
`----

while an org file like this

,----
| line 1
| #+HTML: <strong>line 2</strong>
|
| line 3
`----

is exported to

,----
| <p>
| line 1
| <strong>line 2</strong>
|
| line 3
| </p>
`----

This is probably not a major thing but it may lead to invalid HTML code. Suppose `line 3' is replaced by e.g. an example block (which inserts its
own p element) then a p element would appear inside another p element
which is not allowed.

I think your observation is correct.  However, it is very tricky
to get this right, and I don't have the time to look into this now.

- Carsten





reply via email to

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