org2nikola icon indicating copy to clipboard operation
org2nikola copied to clipboard

org2nikola-export-subtree adds subtree headline as a heading

Open joonro opened this issue 9 years ago • 9 comments

Hi,

I'm using ox-nikola Version: 20150901.1507 from melpa, and I found that whenever I run (org2nikola-export-subtree), it adds the headline of the subtree as a heading. For example, if I have

* post title
Text
** header 1
Text

the resulting blog post (basically) becomes


=========
post title
=========

post title
=======

Text

header 1
----------

Text

instead of


=========
post title
=========

Text

header 1
=======

Text

joonro avatar Sep 14 '15 16:09 joonro

You are using org2nikola instead of ox-nikola. In org2nikola, you should write blog posts in one file, each subtree (node) are regarded as a post. I've not implemented the per file command yet.

redguardtoo avatar Sep 14 '15 23:09 redguardtoo

I'm actually talking about exporting the subtree. The headline of the toplevel subtree should be the title of the blog post and the body of the subtree should be the body of the blog post, but strangely org2nikola is putting the whole subtree (including the toplevel headline) inside the body of the blog post instead.

I'm sorry if my explanation is hard to understand. It used to work well, and it seems org2nikola has not been updated for a while, so I actually think some other settings broke this. I will let you know once I find the culprit.

joonro avatar Sep 15 '15 16:09 joonro

M-x org-version? Emacs version?

redguardtoo avatar Sep 16 '15 01:09 redguardtoo

org-version is 8.3.1, Emacs is 25.0.50.1 (x86_64-w64-mingw32)

joonro avatar Sep 16 '15 02:09 joonro

I actually started getting Invalid read syntax: "] in a list" error when I do (org2nikola-export-subtree).

joonro avatar Sep 18 '15 00:09 joonro

I will check this weekend, I think it's because org-mode changed some API

redguardtoo avatar Sep 18 '15 02:09 redguardtoo

I see. Thank you so much!

joonro avatar Sep 18 '15 02:09 joonro

it's working in 24.3, 24.4, 24.5.

25.0.50 is unstable version I will not support.

I suggest sticking to the stable version.

redguardtoo avatar Sep 21 '15 11:09 redguardtoo

I understand - it seems I shouldn't have upgraded - I'm having hard time reverting it (bunch of errors in my init file). Thanks anyway!

joonro avatar Sep 21 '15 15:09 joonro