all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] ASCII export: Fixed a bug.
@ 2011-02-13 10:54 Valentin Wüstholz
  2011-02-13 11:44 ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Valentin Wüstholz @ 2011-02-13 10:54 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 154 bytes --]

Hi,

I have attached a small patch for a bug that I reported a while ago.
See http://thread.gmane.org/gmane.emacs.orgmode/36097.

Best regards,

Valentin

[-- Attachment #2: org-ascii.el.diff --]
[-- Type: application/octet-stream, Size: 731 bytes --]

diff --git a/lisp/org-ascii.el b/lisp/org-ascii.el
index 01106c3..f9094a1 100644
--- a/lisp/org-ascii.el
+++ b/lisp/org-ascii.el
@@ -652,9 +652,8 @@ publishing directory."
       (if (or (not (equal (char-before) ?\n))
 	      (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)))	    
+      (setq char (or (nth (- level 1) 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))))

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-02-15  9:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-13 10:54 [PATCH] ASCII export: Fixed a bug Valentin Wüstholz
2011-02-13 11:44 ` Bastien
2011-02-13 12:15   ` Valentin Wüstholz
2011-02-15  4:31     ` Bastien
2011-02-15  6:58       ` Valentin Wüstholz
2011-02-15  8:59         ` Valentin Wüstholz
2011-02-15  9:47           ` Bastien

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.