Explorar o código

org-footnote: Guard against `def' being nil, if footnote undefined

John Wiegley %!s(int64=13) %!d(string=hai) anos
pai
achega
bb08fab804
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      lisp/org-footnote.el

+ 2 - 1
lisp/org-footnote.el

@@ -651,7 +651,8 @@ Additional note on `org-footnote-insert-pos-for-preprocessor':
 				     (org-combine-plists
 				      export-props
 				      '(:todo-keywords t :tags t :priority t))))
-				(org-export-preprocess-string def parameters))
+				(if def
+				    (org-export-preprocess-string def parameters)))
 			    def)
 			  inlinep) ref-table)))
 	  ;; Remove definition of non-inlined footnotes.