Fix source code example bug with plain list export to HTML
commitc201da51b88703a71e6eda64b52d53a5441c594f
authorCarsten Dominik <carsten.dominik@gmail.com>
Fri, 18 Jun 2010 06:49:25 +0000 (18 08:49 +0200)
committerCarsten Dominik <carsten.dominik@gmail.com>
Fri, 18 Jun 2010 06:49:25 +0000 (18 08:49 +0200)
tree5a1618af80d6a25aeef453d0246886b86a6c5b3a
parent4096c92e89fa2972ed0f83ce3442c97b0ac6b83e
Fix source code example bug with plain list export to HTML

* lisp/org-exp.el (org-export-format-source-code-or-example): Mark examples
by a property. o
* lisp/org-html.el (org-export-html-close-lists-maybe): Check if raw
HTML stuff was actually made from an example

Daniel Mahler writes:

> 2. I would like to embed source blocks in numbered lists, without
> breaking the numbering ie:
>
>    1) get ready
>     #+BEGIN_SRC sh
>    get_ready
>     #+END_SRC
>    2) go
>     #+BEGIN_SRC sh
>    go
>     #+END_SRC
>
>    currently the src blocks cause the numbering to reset, so all
> items in a sequence like this are numbered 1

This patch fixes this issue - but I cannot say anymore why the code in
org-export-html-close-lists-maybe does in fact work.  The code looks
wrong, but it seems to work.  What looks wrong is that i does not
check for the true indentation in the case when the line is not
protected.  It must be that this case is covered by some other code
further down in the exporter.
lisp/org-exp.el
lisp/org-html.el