LaTeX export: Fix bug when exporting a region

Exporting a region to LaTeX did not recognize section header
correctly.  Fixed now.
This commit is contained in:
Carsten Dominik 2009-05-23 08:13:05 +02:00
parent ab643f15d9
commit 6d406766df
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2009-05-23 Carsten Dominik <carsten.dominik@gmail.com>
* org-latex.el (org-export-latex-first-lines): Fix bug when
exporting a region.
2009-05-22 Carsten Dominik <carsten.dominik@gmail.com>
* org-exp.el (org-export-push-to-kill-ring): Protect using

View File

@ -904,10 +904,9 @@ If END is non-nil, it is the end of the region."
(save-excursion
(goto-char (or beg (point-min)))
(let* ((pt (point))
(end (or end
(if (re-search-forward "^\\*+ " nil t)
(end (if (re-search-forward "^\\*+ " end t)
(goto-char (match-beginning 0))
(goto-char (point-max))))))
(goto-char (point-max)))))
(prog1
(org-export-latex-content
(org-export-preprocess-string