浏览代码

ox-odt: Ignore blank titles

* lisp/ox-odt.el (org-odt-template): Ignore blank titles.
Nicolas Goaziou 11 年之前
父节点
当前提交
25c591fcc4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lisp/ox-odt.el

+ 1 - 1
lisp/ox-odt.el

@@ -1502,7 +1502,7 @@ original parsed data.  INFO is a plist holding export options."
 	      (email (and (plist-get info :with-email) email)))
 	      (email (and (plist-get info :with-email) email)))
 	 (concat
 	 (concat
 	  ;; Title.
 	  ;; Title.
-	  (when title
+	  (when (org-string-nw-p title)
 	    (concat
 	    (concat
 	     (format "\n<text:p text:style-name=\"%s\">%s</text:p>"
 	     (format "\n<text:p text:style-name=\"%s\">%s</text:p>"
 		     "OrgTitle" (format "\n<text:title>%s</text:title>" title))
 		     "OrgTitle" (format "\n<text:title>%s</text:title>" title))