diff options
| author | Carsten Dominik | 2009-02-06 11:47:58 +0000 |
|---|---|---|
| committer | Carsten Dominik | 2009-02-06 11:47:58 +0000 |
| commit | ee9d4ebe94d9af586fcc71ef3f68f2636e4662f6 (patch) | |
| tree | 5693ac674dc424cd67983408ba329a31c7f6387d | |
| parent | e9176a6375c587e3bdf76c94b5e457a2c52ca4f4 (diff) | |
| download | emacs-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/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/org/org-exp.el | 2 |
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 @@ | |||
| 1 | 2009-02-06 Carsten Dominik <dominik@science.uva.nl> | 1 | 2009-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"))) |