Commit ee9d4ebe authored by Carsten Dominik's avatar Carsten Dominik
Browse files

2009-02-06 Carsten Dominik <dominik@science.uva.nl>

	* org-exp.el (org-export-preprocess-string): Fix bug with skipping
	text before first headline.
parent e9176a63
2009-02-06 Carsten Dominik <dominik@science.uva.nl> 2009-02-06 Carsten Dominik <dominik@science.uva.nl>
* org-exp.el (org-export-preprocess-string): Fix bug with skipping
text before first headline.
* org.el (org-format-latex): Stop LaTeX fragment processing in * org.el (org-format-latex): Stop LaTeX fragment processing in
protected examples. protected examples.
......
...@@ -1538,7 +1538,7 @@ on this string to produce the exported version." ...@@ -1538,7 +1538,7 @@ on this string to produce the exported version."
;; Get the correct stuff before the first headline ;; Get the correct stuff before the first headline
(when (plist-get parameters :skip-before-1st-heading) (when (plist-get parameters :skip-before-1st-heading)
(goto-char (point-min)) (goto-char (point-min))
(when (re-search-forward "\\(^#.*\n\\)^\\*+[ \t]" nil t) (when (re-search-forward "^\\(#.*\n\\)?\\*+[ \t]" nil t)
(delete-region (point-min) (match-beginning 0)) (delete-region (point-min) (match-beginning 0))
(goto-char (point-min)) (goto-char (point-min))
(insert "\n"))) (insert "\n")))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment