2008/5/28 Carsten Dominik <c.dominik@uva.nl>:
Fixed thanks.
I cannot make an error message when you have misspelled a tag, because Org cannot know
if you have inserted that string on purpose.
But the loop is fixed now, and I am using now contents instead of content.
- Carsten
Thank you for your quick response and fix. I confirmed that's OK now.
And I thought I have fixed a little bug in org-export-as-html.
See this test file:
--8<----8<--
#+TITLE: this is the title
<content>
* title1
* title2
<example>
good day
</example>
There's no empty line or others contents after <example>...</example> block.
After export (C-c C-e , the </pre> closing tag is missing:
--8<-----8<---
<div id="outline-container-2" class="outline-2">
<h2 id="sec-2">2 title2</h2>
<div id="text-2">
<p><pre>
good day
</p></div>
</div>
--8<----8<---
Here's the patch:
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 4637e8e..461ec3d 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -2666,7 +2666,7 @@ lang=\"%s\" xml:lang=\"%s\">
(setq infixed t)
(insert "<pre>\n"))
(insert (org-html-protect (match-string 1 line)) "\n")
- (when (and lines
+ (when (or (null lines)
(not (string-match "^[ \t]*\\(:.*\\)"
(car lines))))
(setq infixed nil)
- Levin