aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Dominik2009-02-06 11:47:58 +0000
committerCarsten Dominik2009-02-06 11:47:58 +0000
commitee9d4ebe94d9af586fcc71ef3f68f2636e4662f6 (patch)
tree5693ac674dc424cd67983408ba329a31c7f6387d
parente9176a6375c587e3bdf76c94b5e457a2c52ca4f4 (diff)
downloademacs-ee9d4ebe94d9af586fcc71ef3f68f2636e4662f6.tar.gz
emacs-ee9d4ebe94d9af586fcc71ef3f68f2636e4662f6.zip
2009-02-06 Carsten Dominik <dominik@science.uva.nl>
* org-exp.el (org-export-preprocess-string): Fix bug with skipping text before first headline.
-rw-r--r--lisp/org/ChangeLog3
-rw-r--r--lisp/org/org-exp.el2
2 files changed, 4 insertions, 1 deletions
diff --git a/lisp/org/ChangeLog b/lisp/org/ChangeLog
index da098fdba1f..f36f07ae273 100644
--- a/lisp/org/ChangeLog
+++ b/lisp/org/ChangeLog
@@ -1,5 +1,8 @@
12009-02-06 Carsten Dominik <dominik@science.uva.nl> 12009-02-06 Carsten Dominik <dominik@science.uva.nl>
2 2
3 * org-exp.el (org-export-preprocess-string): Fix bug with skipping
4 text before first headline.
5
3 * org.el (org-format-latex): Stop LaTeX fragment processing in 6 * org.el (org-format-latex): Stop LaTeX fragment processing in
4 protected examples. 7 protected examples.
5 8
diff --git a/lisp/org/org-exp.el b/lisp/org/org-exp.el
index e302052a6ec..cf94d5ee433 100644
--- a/lisp/org/org-exp.el
+++ b/lisp/org/org-exp.el
@@ -1538,7 +1538,7 @@ on this string to produce the exported version."
1538 ;; Get the correct stuff before the first headline 1538 ;; Get the correct stuff before the first headline
1539 (when (plist-get parameters :skip-before-1st-heading) 1539 (when (plist-get parameters :skip-before-1st-heading)
1540 (goto-char (point-min)) 1540 (goto-char (point-min))
1541 (when (re-search-forward "\\(^#.*\n\\)^\\*+[ \t]" nil t) 1541 (when (re-search-forward "^\\(#.*\n\\)?\\*+[ \t]" nil t)
1542 (delete-region (point-min) (match-beginning 0)) 1542 (delete-region (point-min) (match-beginning 0))
1543 (goto-char (point-min)) 1543 (goto-char (point-min))
1544 (insert "\n"))) 1544 (insert "\n")))