From: Wes Hardaker <wjhns209@hardakers.net>
To: Christian Lasarczyk <christian@lasarczyk.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: OrgmodeGeneric export: Missing (?) 'body-section-suffix'
Date: Fri, 08 Jan 2010 07:51:26 -0800 [thread overview]
Message-ID: <sd637cwq69.fsf@wjh.hardakers.net> (raw)
In-Reply-To: <hi5jhb$dfa$1@ger.gmane.org> (Christian Lasarczyk's message of "Thu, 07 Jan 2010 22:26:04 +0100")
>>>>> On Thu, 07 Jan 2010 22:26:04 +0100, Christian Lasarczyk <christian@lasarczyk.de> said:
CL> In my opinion the body-section-suffix [ here =")" ] is missing for
CL> all last section levels (hhh & jjj), so I expected an additional
CL> "))" at the end.
You're right that after the parsing is done it doesn't "pop back up" the
level tree for any close-out stuff. Good catch.
Here's a patch to fix this (Carsten: can you apply it to your git tree?)
diff --git a/contrib/lisp/org-export-generic.el b/contrib/lisp/org-export-generic.el
index 90517c0..7b4a30d 100644
--- a/contrib/lisp/org-export-generic.el
+++ b/contrib/lisp/org-export-generic.el
@@ -949,6 +949,15 @@ underlined headlines. The default is 3."
(org-export-generic-wrap line bodylinewrap))
(setq line line)))
(insert (format bodylineform line)))))
+
+ ;; if we're at a level > 0; insert the closing body level stuff
+ (let ((counter 0))
+ (while (> (- level counter) 0)
+ (insert
+ (org-export-generic-format export-plist :body-section-suffix 0
+ (- level counter)))
+ (setq counter (1+ counter))))
+
(org-export-generic-check-section "bottom")
(org-export-generic-push-links (nreverse link-buffer))
--
Wes Hardaker
My Pictures: http://capturedonearth.com/
My Thoughts: http://pontifications.hardakers.net/
next prev parent reply other threads:[~2010-01-08 15:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-07 21:26 Generic export: Missing (?) 'body-section-suffix' Christian Lasarczyk
2010-01-08 15:51 ` Wes Hardaker [this message]
2010-01-08 16:35 ` Re: OrgmodeGeneric " Carsten Dominik
2010-01-08 18:54 ` Christian Lasarczyk
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=sd637cwq69.fsf@wjh.hardakers.net \
--to=wjhns209@hardakers.net \
--cc=christian@lasarczyk.de \
--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).