From cff060f3acbf92bdedd6f97f2d15cccbaf9e6161 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Wed, 3 Mar 2010 14:36:31 +0100 Subject: [PATCH] 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: > > -------------------------------------------------------- >
> >
> -------------------------------------------------------- > > This is wrong because the asterisks inside the example don't > represent headers. There should be only one header. --- lisp/ChangeLog | 3 +++ lisp/org-html.el | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ecb75cdf5..ac3716a31 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2010-03-03 Carsten Dominik + * org-html.el (org-export-as-html): Do not allow protected lines + into the table of contents. + * org-latex.el (org-export-latex-special-chars): Find subsequent occurrences of special characters. (org-export-latex-tables): Do not convert table-like stuff that is diff --git a/lisp/org-html.el b/lisp/org-html.el index ff0019563..aa70408d0 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -809,7 +809,8 @@ lang=\"%s\" xml:lang=\"%s\"> (push "