Ver Fonte

ox-texinfo: Fix parse tree corruption

* lisp/ox-texinfo.el (org-texinfo--normalize-headlines): Properly add
  a section to the contents.
Nicolas Goaziou há 10 anos atrás
pai
commit
1adec31993
1 ficheiros alterados com 3 adições e 2 exclusões
  1. 3 2
      lisp/ox-texinfo.el

+ 3 - 2
lisp/ox-texinfo.el

@@ -425,8 +425,9 @@ Return new tree."
 	  (let ((first (org-element-map contents '(headline section)
 			 #'identity info t)))
 	    (unless (eq (org-element-type first) 'section)
-	      (org-element-set-contents
-	       hl (cons `(section (:parent ,hl)) contents)))))))
+	      (apply #'org-element-set-contents
+		     hl
+		     (cons `(section (:parent ,hl)) contents)))))))
     info)
   tree)