emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Generic export: Missing (?) 'body-section-suffix'
@ 2010-01-07 21:26 Christian Lasarczyk
  2010-01-08 15:51 ` OrgmodeGeneric " Wes Hardaker
  0 siblings, 1 reply; 4+ messages in thread
From: Christian Lasarczyk @ 2010-01-07 21:26 UTC (permalink / raw)
  To: emacs-orgmode

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

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

end of thread, other threads:[~2010-01-08 18:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-07 21:26 Generic export: Missing (?) 'body-section-suffix' Christian Lasarczyk
2010-01-08 15:51 ` OrgmodeGeneric " Wes Hardaker
2010-01-08 16:35   ` Carsten Dominik
2010-01-08 18:54   ` Christian Lasarczyk

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