Explorar o código

Fix bug with title extraction during export when first line is headline.

Carsten Dominik %!s(int64=16) %!d(string=hai) anos
pai
achega
7b7ad51618
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      lisp/org-exp.el

+ 3 - 1
lisp/org-exp.el

@@ -1878,7 +1878,9 @@ can work correctly."
   (let ((inhibit-read-only t))
     (save-excursion
       (goto-char (point-min))
-      (let ((end (save-excursion (outline-next-heading) (point))))
+      (let ((end (if (looking-at org-outline-regexp)
+		     (point)
+		   (save-excursion (outline-next-heading) (point)))))
 	(when (re-search-forward "^[ \t]*[^|# \t\r\n].*\n" end t)
 	  ;; Mark the line so that it will not be exported as normal text.
 	  (org-unmodified