emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Lasarczyk <christian@lasarczyk.de>
To: emacs-orgmode@gnu.org
Subject: Generic export: Missing (?) 'body-section-suffix'
Date: Thu, 07 Jan 2010 22:26:04 +0100	[thread overview]
Message-ID: <hi5jhb$dfa$1@ger.gmane.org> (raw)

Dear org-developers,

I tried to write a little export filter using the generic export mechanism 
and observed an unexpected -- at least to me -- behavior with 6.33f and git-
HEAD.

Here is the (unfinished) export setting:

(org-set-generic-type
 "Contralateral Mindmap"
 '(:file-suffix  ".asy"
		 :key-binding  ?C
		 
		 ;; For now we just need headers
		 :author-export             nil
		 :tags-export               nil
		 :drawers-export            nil
		 :toc-export                nil

		 :title-format "Node map = Node(\"%s\""

		 :body-section-header-prefix  ("\n  " "\n    " "\n      "
					       "\n        " "\n          " "\n            ")
		 :body-section-header-format  ", Node(\"%s\""
		 :body-section-suffix         ")"
		 :body-header-section-numbers nil
		 :body-line-format ""
		 :body-line-wrap   75
		 ))

Here is a minimal example (input):
#+TITLE: Mymap
* aaa
** bbb
   Ignore content, ignore content, ignore content
*** ccc
** ddd
*** eee
*** fff
* ggg
* hhh
** iii
** jjj


And here is the exported output:

Node map = Node("Mymap"
  , Node("aaa"
    , Node("bbb"
      , Node("ccc"))
    , Node("ddd"
      , Node("eee")
      , Node("fff")))
  , Node("ggg")
  , Node("hhh"
    , Node("iii")
    , Node("jjj"

In my opinion the body-section-suffix [ here =")" ] is missing for all last 
section levels (hhh & jjj), so I expected an additional "))" at the end.

BTW: Is there a way to add a footer? Because I have to add an additional 
");" (not expected to be done by my generic exporter settings yet).

Best regards,

   Christian

             reply	other threads:[~2010-01-07 21:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-07 21:26 Christian Lasarczyk [this message]
2010-01-08 15:51 ` OrgmodeGeneric export: Missing (?) 'body-section-suffix' Wes Hardaker
2010-01-08 16:35   ` 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='hi5jhb$dfa$1@ger.gmane.org' \
    --to=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).