Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multi-paragraph list items #17

Closed
stig opened this issue Apr 14, 2016 · 3 comments
Closed

Support multi-paragraph list items #17

stig opened this issue Apr 14, 2016 · 3 comments

Comments

@stig
Copy link
Owner

stig commented Apr 14, 2016

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
Copy link

timacs commented Apr 14, 2016

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
Copy link
Owner Author

stig commented Apr 14, 2016

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
Copy link

timacs commented Apr 16, 2016

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

Oh, yeah, that's surprising. 😕

stig added a commit that referenced this issue Apr 21, 2016
This means that Orgmode lists like this:

- fi

- fo

- fa

Exports to Jira:

* fi
* fo
* fa

which means it stays one list, rather than multiple.

Fixes #17

Credit: http://thread.gmane.org/gmane.emacs.orgmode/106478/focus=106480
@stig stig closed this as completed in #19 Apr 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants