HTML export: Do not allow protected lines into the TOC
commitcff060f3acbf92bdedd6f97f2d15cccbaf9e6161
authorCarsten Dominik <carsten.dominik@gmail.com>
Wed, 3 Mar 2010 13:36:31 +0000 (3 14:36 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Wed, 3 Mar 2010 13:36:31 +0000 (3 14:36 +0100)
treec30934ed3b0f00888663e1c33e6f246c808018b3
parent7a9a998c013d6e62336a40729447af7d76e3b490
HTML export:  Do not allow protected lines into the TOC

Daniel Clemente writesL

> Hi, I found an HTML export bug with org-mode 6.34c-140-g44c8 and
> older. I used:
>
> --------------------------------------------------------
> * only one section
> #+BEGIN_EXAMPLE:
>
>  We need:
>  ,* pears
>  ,* lettuce
>  ,* watermelons
>
>  Very important!
> #+END_EXAMPLE:
> --------------------------------------------------------
>
>  And the outputed table of contents had this code:
>
> --------------------------------------------------------
> <div id="text-table-of-contents">
> <ul>
> <li><a href="#sec-1">1 only one section </a></li>
> <li><a href="#sec-2">2 pears</a></li>
> <li><a href="#sec-3">3 lettuce</a></li>
> <li><a href="#sec-4">4 watermelons</a></li>
> </ul>
> </div>
> --------------------------------------------------------
>
> This is wrong because the asterisks inside the example don't
> represent headers. There should be only one header.
lisp/ChangeLog
lisp/org-html.el