Browse Source

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

John Wiegley 13 years ago
parent
commit
bb08fab804
1 changed files with 2 additions and 1 deletions
  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.