From: "Valentin Wüstholz" <wuestholz@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: [PATCH] ASCII export: Fixed a bug.
Date: Sun, 13 Feb 2011 11:54:43 +0100 [thread overview]
Message-ID: <AANLkTikw3vamENTzQ6hNKiWyOioT04O03dPqCs9DQdbz@mail.gmail.com> (raw)
[-- 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
next reply other threads:[~2011-02-13 10:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-13 10:54 Valentin Wüstholz [this message]
2011-02-13 11:44 ` [PATCH] ASCII export: Fixed a bug 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTikw3vamENTzQ6hNKiWyOioT04O03dPqCs9DQdbz@mail.gmail.com \
--to=wuestholz@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).