Преглед на файлове

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))))