Kaynağa Gözat

Merge branch 'maint'

Nicolas Goaziou 9 yıl önce
ebeveyn
işleme
66a2119ae6
2 değiştirilmiş dosya ile 7 ekleme ve 10 silme
  1. 5 8
      lisp/ox.el
  2. 2 2
      testing/lisp/test-ox.el

+ 5 - 8
lisp/ox.el

@@ -2628,15 +2628,12 @@ from tree."
 			;; If headline is archived but tree below has
 			;; to be skipped, remove contents.
 			(org-element-set-contents data)
-		      ;; Move into secondary string, if any.
-		      (let ((sec-prop
-			     (cdr (assq type
-					org-element-secondary-value-alist))))
-			(when sec-prop
-			  (mapc walk-data
-				(org-element-property sec-prop data))))
 		      ;; Move into recursive objects/elements.
-		      (mapc walk-data (org-element-contents data)))))))))
+		      (mapc walk-data (org-element-contents data)))
+		    ;; Move into secondary string, if any.
+		    (dolist (p (cdr (assq type
+					  org-element-secondary-value-alist)))
+		      (mapc walk-data (org-element-property p data)))))))))
     ;; If a select tag is active, also ignore the section before the
     ;; first headline, if any.
     (when selected

+ 2 - 2
testing/lisp/test-ox.el

@@ -591,11 +591,11 @@ Paragraph"
 			   nil nil nil '(:with-properties ("B"))))))
   ;; Statistics cookies.
   (should
-   (equal ""
+   (equal "* Stats"
 	  (let (org-export-filter-body-functions
 		org-export-filter-final-output-functions)
 	    (org-trim
-	     (org-test-with-temp-text "[0/0]"
+	     (org-test-with-temp-text "* Stats [0/0]"
 	       (org-export-as (org-test-default-backend)
 			      nil nil nil '(:with-statistics-cookies nil)))))))
   ;; Tables.