stig / ox-jira.el

Org-mode export backend for JIRA markup
132 stars 20 forks source link

Support multi-paragraph list items #17

Closed stig closed 8 years ago

stig commented 8 years ago

A minor plea for help:

I noticed recently that list items with multiple paragraphs does not work. e.g.

  - fi

    fo
  - fa
  - fun

Also, probably by extension, lists with a blank line between items does not work, e.g.

  - fi

  - fo

  - fa

I first thought I could just hack it by wrapping list item in an invisible panel, but that does not appear to work for nested lists. Any ideas / advice for how to deal with this?

There's my first stab at a fix here: https://github.com/stig/ox-jira.el/tree/multi-line-items -- but it breaks nested lists :-(

timacs commented 8 years ago

Sorry, I have a dumb question here.

Your examples are in Org markup, aren't they? If yes, the first one is exported by ox-jira to

* fi

fo
* fa
* fun

Which is wrong, but I wonder why you don't just export it as below.

* fi
  fo
* fa
* fun

It is rendered as screenshot from 2016-04-14 16 26 27

stig commented 8 years ago

Well, that's indeed how I want to export it. But how? It seems that org export adds a newline between paragraphs that I cannot "get at" in this case. It is quite vexing.

I can't mark up my org like this:

- fi
  fo
- fa
- fun

because the lack of a blank line makes the first item into a single paragraph:

screen shot 2016-04-14 at 14 46 00

This might be due to one of my pet hates with JIRA, which I'm trying to fix with this code: https://github.com/stig/ox-jira.el/blob/master/ox-jira.org#paragraph

timacs commented 8 years ago

It seems that org export adds a newline between paragraphs that I cannot "get at" in this case.

Oh, yeah, that's surprising. :confused: