瀏覽代碼

org-ascii.el: Fix bug when picking up the underline char.

Bastien Guerry 14 年之前
父節點
當前提交
706f2da458
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lisp/org-ascii.el

+ 2 - 2
lisp/org-ascii.el

@@ -653,8 +653,8 @@ publishing directory."
 	      (not (equal (char-before (1- (point))) ?\n)))
 	  (insert "\n"))
       (setq char (or (nth (max (- umax level) 0)
-			  (reverse org-export-ascii-underline))
-		     (last org-export-ascii-underline)))	    
+      			  (reverse org-export-ascii-underline))
+      		     (car (last org-export-ascii-underline))))
       (unless org-export-with-tags
 	(if (string-match (org-re "[ \t]+\\(:[[:alnum:]_@#%:]+:\\)[ \t]*$") title)
 	    (setq title (replace-match "" t t title))))