Explorar o código

Merge branch 'master' into next

Nicolas Goaziou %!s(int64=6) %!d(string=hai) anos
pai
achega
01a4f33568
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      lisp/ox.el

+ 1 - 4
lisp/ox.el

@@ -2673,10 +2673,7 @@ The function assumes BUFFER's major mode is `org-mode'."
 				    (quote ,val))
 			      vars))))))
 	 ;; Whole buffer contents.
-	 (insert
-	  ,(org-with-wide-buffer
-	    (buffer-substring-no-properties
-	     (point-min) (point-max))))
+	 (insert ,(org-with-wide-buffer (buffer-string)))
 	 ;; Narrowing.
 	 ,(if (org-region-active-p)
 	      `(narrow-to-region ,(region-beginning) ,(region-end))