mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 18:37:33 +00:00
2009-02-06 Carsten Dominik <dominik@science.uva.nl>
* org-exp.el (org-export-preprocess-string): Fix bug with skipping text before first headline.
This commit is contained in:
parent
e9176a6375
commit
ee9d4ebe94
2 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
|||
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
|
||||
protected examples.
|
||||
|
||||
|
|
|
|||
|
|
@ -1538,7 +1538,7 @@ on this string to produce the exported version."
|
|||
;; Get the correct stuff before the first headline
|
||||
(when (plist-get parameters :skip-before-1st-heading)
|
||||
(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))
|
||||
(goto-char (point-min))
|
||||
(insert "\n")))
|
||||
|
|
|
|||
Loading…
Reference in a new issue