Bug fix: Org hangs upon export when the end_example line is missing.

This commit is contained in:
Carsten Dominik 2008-06-09 17:10:18 +02:00
parent 049b5931dd
commit b78d39350c
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2008-06-09 Carsten Dominik <dominik@science.uva.nl>
* org-exp.el (org-export-protect-examples): Catch the case of a
missing end_example line.
* org.el (org-set-regexps-and-options): Set `org-file-properties' and
`org-file-tags' to nil.

View File

@ -1499,7 +1499,7 @@ from the buffer."
(goto-char (point-min))
(while (re-search-forward "^#\\+BEGIN_EXAMPLE[ \t]*\n" nil t)
(goto-char (match-end 0))
(while (not (looking-at "#\\+END_EXAMPLE"))
(while (and (not (looking-at "#\\+END_EXAMPLE")) (not (eobp)))
(insert ": ")
(beginning-of-line 2)))
(goto-char (point-min))