소스 검색

lisp/ox-texinfo.el: Fix parsing of list entries without content

* lisp/ox-texinfo.el (org-texinfo-item): Check for contents before
  trimming whitespace from it.
Jonathan Leech-Pepin 12 년 전
부모
커밋
731428e7a5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lisp/ox-texinfo.el

+ 1 - 1
lisp/ox-texinfo.el

@@ -1142,7 +1142,7 @@ contextual information."
   (let* ((tag (org-element-property :tag item))
 	 (desc (org-export-data tag info)))
     (concat "\n@item " (if tag desc) "\n"
-	    (org-trim contents) "\n")))
+	    (and contents (org-trim contents)) "\n")))
 
 ;;; Keyword