emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Re: Another HTML Export Problem


From: Bernt Hansen
Subject: [O] Re: Another HTML Export Problem
Date: Sun, 20 Mar 2011 21:46:19 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

David Maus <address@hidden> writes:

> At Thu, 17 Mar 2011 14:34:52 +0000,
> Eric S Fraga wrote:
>>
>> I don't know if this is the same problem but exporting, to HTML, the
>
> Yes, this was a symptom of the broken HTML export. Should be fixed now.

Hi David,

I think there is yet another HTML export issue with the current
development code.

--8<---------------cut here---------------start------------->8---
* Test
[2011-03-20 Sun]
[2011-03-20 Sun]
org.el
--8<---------------cut here---------------end--------------->8---

exported here: http://www.norang.ca/tmp/org-scratch.html

exports to HTML as

--8<---------------cut here---------------start------------->8---
...
<body>
<div id="content">

<h1 class="title">org-scratch</h1>

<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1">1 Test </a></li>
</ul>
</div>
</div>

<div id="outline-container-1" class="outline-2">
<h2 id="sec-1"><span class="section-number-2">1</span> Test </h2>
<div class="outline-text-2" id="text-1">

<p> <span class="timestamp-wrapper"> <span class="timestamp">2011-03-20 
Sun</span></span>&lt;br/&gt;
 <span class="timestamp-wrapper"> <span class="timestamp">2011-03-20 
Sun</span></span>&lt;br/&gt;
org.el
</p></div>
</div>
<div id="postamble">
<p class="date">Date: 2011-03-20 21:31:20 EDT</p>
<p class="author">Author: Bernt Hansen</p>
<p class="creator">Org version 7.5 with Emacs version 23</p>
<a href="http://validator.w3.org/check?uri=referer";>Validate XHTML 1.0</a>
</div>
</div>
</body>
</html>
--8<---------------cut here---------------end--------------->8---

For the timestamps

,----
| <div class="outline-text-2" id="text-1">
| 
| <p> <span class="timestamp-wrapper"> <span class="timestamp">2011-03-20 
Sun</span></span>&lt;br/&gt;
|  <span class="timestamp-wrapper"> <span class="timestamp">2011-03-20 
Sun</span></span>&lt;br/&gt;
| org.el
| </p></div>
`----

The timestamps have the < and > brackets of <br/> converted to &lt; and
&gt; which is incorrect.

I ran bisect and identified the following commit

6a369c26d3f936bc71cba9d7148dcecf1b2c9677 is the first bad commit
commit 6a369c26d3f936bc71cba9d7148dcecf1b2c9677
Author: David Maus <address@hidden>
Date:   Sun Mar 13 20:27:12 2011 +0100

    Expand char entities after creating markup for links and timestamps
    
    * org-html.el (org-html-make-link, org-html-handle-links): Protect
    generated XHTML elements.
    (org-export-as-html): Expand character entities after creating markup
    for links and timestamps.
    
    This fixes a problem with exporting active timestamps, reported by
    Daniel Clemente <address@hidden>.

:040000 040000 1508340e77dca86766af48df2eadf747070f89ce 
ca668c398391b307e49113fb592fb68195640896 M      lisp

Regards,
-- 
Bernt



reply via email to

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