Procházet zdrojové kódy

ox-texinfo: Fix small bug

* lisp/ox-texinfo.el (org-texinfo-plain-list): Use `member' instead of
  `memq' when matching strings.
Nicolas Goaziou před 12 roky
rodič
revize
5c25ede5d9
1 změnil soubory, kde provedl 2 přidání a 4 odebrání
  1. 2 4
      lisp/ox-texinfo.el

+ 2 - 4
lisp/ox-texinfo.el

@@ -1282,11 +1282,9 @@ contextual information."
 	 (indic (or (plist-get attr :indic)
 		    org-texinfo-def-table-markup))
 	 (type (org-element-property :type plain-list))
-	 (table-type (or (plist-get attr :table-type)
-			 "table"))
+	 (table-type (plist-get attr :table-type))
 	 ;; Ensure valid texinfo table type.
-	 (table-type (if (memq table-type '("table" "ftable" "vtable"))
-			 table-type
+	 (table-type (if (member table-type '("ftable" "vtable")) table-type
 		       "table"))
 	 (list-type (cond
 		     ((eq type 'ordered) "enumerate")