emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] bug: superfluous <p> tags when exporting verse and quote block


From: Xerxes Folupa
Subject: [Orgmode] bug: superfluous <p> tags when exporting verse and quote blocks
Date: Sun, 07 Dec 2008 15:35:27 -0300
User-agent: Opera Mail/9.62 (Win32)

Hi,

I spotted a little inconsistency in the way Org strips tags when processing #+begin_verse ... #+end_verse, and #+begin_quote ... #+end_quote blocks, compared with other literal blocks that strip superfluous <p> tags correctly (e.g. #+html)

org-version: Org-mode version 6.14

emacs-version: GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)

As usual, it's easier to request a fix than to implement it yourself...

===

* Sample input:


#+begin_verse
one
two
#+end_verse

paragraph.

#+begin_quote
one. --author
#+end_quote

* Output:

<p>
<p class="verse">
one <br/>
two <br/>
</p>
</p>
<p>
paragraph.
</p>
<p>
<blockquote>
<p>
one. &ndash;author
</p>
</blockquote>
</p>

* Desired, 'valid xhtml' output:

<p class="verse">
one <br/>
two <br/>
</p>
<p>
paragraph.
</p>
<blockquote>
<p>
one. &ndash;author
</p>
</blockquote>

===

Additional question: is the space before the <br/> in verse blocks a design decision?

Cheers,
Xerxes





reply via email to

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