scimax icon indicating copy to clipboard operation
scimax copied to clipboard

List after code block results in wrong list hierarchy upon notebook export

Open uliw opened this issue 5 years ago • 6 comments

Hi John,

I noticed that the following org-code when exported to a notebook

Some text #+BEGIN_SRC ipython print("Hello World") #+END_SRC

  1. more text
  2. even more text

results in the following list when displayed in the notebook

  1. more text A) even more text

Latex export is just fine. Also, it doe not matter whether there is a an empty line or not.

Workaround: One line of regular text after the code block makes the issue go away i.e.,

#+BEGIN_SRC ipython print("Hello World") #+END_SRC Just some fill text

  1. more text
  2. even more text

will render ok

Cheers

Uli

uliw avatar Dec 18 '19 14:12 uliw

Hm. This seems to work fine for me with org 9.3. If have two blank lines before the list does it still do that?

jkitchin avatar Dec 18 '19 19:12 jkitchin

Hi John,

blank lines don't make a difference.

My org-version is 9.2.6

I will keep an eye out for it once my org is up to 9.3

Uli

On Wed, Dec 18, 2019 at 2:02 PM John Kitchin [email protected] wrote:

Hm. This seems to work fine for me with org 9.3. If have two blank lines before the list does it still do that?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jkitchin/scimax/issues/327?email_source=notifications&email_token=ABWSVATE7K5TWJ2243X73GLQZJXVVA5CNFSM4J4L7T6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHHELLA#issuecomment-567166380, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWSVATLEJXRVXSCZ7F45YTQZJXVVANCNFSM4J4L7T6A .

-- Ulrich G. Wortmann http://www.es.utoronto.ca/people/faculty/wortmann-ulrich/ http://webcan.es.utoronto.ca/people/faculty/wortmann-ulrich/ Dept. of Earth Sciences Fax : 416 978 3938 University of Toronto Phone: 416 978 7084 22 Russell Street, Toronto, ON, Canada M5S 3B1

uliw avatar Dec 18 '19 20:12 uliw

same happens with org 9.3.

OK, I'll dig through my user.el file

Uli

On Wed, Dec 18, 2019 at 3:09 PM Ulrich G. Wortmann [email protected] wrote:

Hi John,

blank lines don't make a difference.

My org-version is 9.2.6

I will keep an eye out for it once my org is up to 9.3

Uli

On Wed, Dec 18, 2019 at 2:02 PM John Kitchin [email protected] wrote:

Hm. This seems to work fine for me with org 9.3. If have two blank lines before the list does it still do that?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jkitchin/scimax/issues/327?email_source=notifications&email_token=ABWSVATE7K5TWJ2243X73GLQZJXVVA5CNFSM4J4L7T6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHHELLA#issuecomment-567166380, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWSVATLEJXRVXSCZ7F45YTQZJXVVANCNFSM4J4L7T6A .

-- Ulrich G. Wortmann http://www.es.utoronto.ca/people/faculty/wortmann-ulrich/ http://webcan.es.utoronto.ca/people/faculty/wortmann-ulrich/ Dept. of Earth Sciences Fax : 416 978 3938 University of Toronto Phone: 416 978 7084 22 Russell Street, Toronto, ON, Canada M5S 3B1

-- Ulrich G. Wortmann http://www.es.utoronto.ca/people/faculty/wortmann-ulrich/ http://webcan.es.utoronto.ca/people/faculty/wortmann-ulrich/ Dept. of Earth Sciences Fax : 416 978 3938 University of Toronto Phone: 416 978 7084 22 Russell Street, Toronto, ON, Canada M5S 3B1

uliw avatar Dec 18 '19 20:12 uliw

Hi John,

I did a fresh install of scimax, and paired my user.el down to the following lines:

(add-to-list 'load-path "~/scimax/ox-ipynb/") (require 'ox-ipynb)

the faulty notebook export persists (see attached png). I am on GNU Emacs 26.3 (build 1, x86_64-suse-linux-gnu, GTK+ Version 3.24.12)

I've also attached the org-file which produces this output, although I can't see anything wrong with it

Cheers

Uli

[image: image.png]

On Wed, Dec 18, 2019 at 3:12 PM Ulrich G. Wortmann [email protected] wrote:

same happens with org 9.3.

OK, I'll dig through my user.el file

Uli

On Wed, Dec 18, 2019 at 3:09 PM Ulrich G. Wortmann < [email protected]> wrote:

Hi John,

blank lines don't make a difference.

My org-version is 9.2.6

I will keep an eye out for it once my org is up to 9.3

Uli

On Wed, Dec 18, 2019 at 2:02 PM John Kitchin [email protected] wrote:

Hm. This seems to work fine for me with org 9.3. If have two blank lines before the list does it still do that?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jkitchin/scimax/issues/327?email_source=notifications&email_token=ABWSVATE7K5TWJ2243X73GLQZJXVVA5CNFSM4J4L7T6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHHELLA#issuecomment-567166380, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWSVATLEJXRVXSCZ7F45YTQZJXVVANCNFSM4J4L7T6A .

-- Ulrich G. Wortmann http://www.es.utoronto.ca/people/faculty/wortmann-ulrich/ http://webcan.es.utoronto.ca/people/faculty/wortmann-ulrich/ Dept. of Earth Sciences Fax : 416 978 3938 University of Toronto Phone: 416 978 7084 22 Russell Street, Toronto, ON, Canada M5S 3B1

-- Ulrich G. Wortmann http://www.es.utoronto.ca/people/faculty/wortmann-ulrich/ http://webcan.es.utoronto.ca/people/faculty/wortmann-ulrich/ Dept. of Earth Sciences Fax : 416 978 3938 University of Toronto Phone: 416 978 7084 22 Russell Street, Toronto, ON, Canada M5S 3B1

-- Ulrich G. Wortmann http://www.es.utoronto.ca/people/faculty/wortmann-ulrich/ http://webcan.es.utoronto.ca/people/faculty/wortmann-ulrich/ Dept. of Earth Sciences Fax : 416 978 3938 University of Toronto Phone: 416 978 7084 22 Russell Street, Toronto, ON, Canada M5S 3B1

uliw avatar Dec 20 '19 16:12 uliw

hm. odd. I had the opportunity to wipe my hard drive clean and do a fresh install of everything the last few days, and it still works fine for me.

I couldn't see any attachments though, so maybe we are doing different things.

jkitchin avatar Dec 21 '19 00:12 jkitchin

Hi John,

ok, I've attached the file as a zip-archive

Cheers

Uli

On Fri, Dec 20, 2019 at 7:57 PM John Kitchin [email protected] wrote:

hm. odd. I had the opportunity to wipe my hard drive clean and do a fresh install of everything the last few days, and it still works fine for me.

I couldn't see any attachments though, so maybe we are doing different things.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jkitchin/scimax/issues/327?email_source=notifications&email_token=ABWSVAQSFK76ZBFWKLXMFPTQZVSWPA5CNFSM4J4L7T6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHORI2Q#issuecomment-568136810, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWSVATC37OXDLHN7XZM6X3QZVSWPANCNFSM4J4L7T6A .

-- Ulrich G. Wortmann http://www.es.utoronto.ca/people/faculty/wortmann-ulrich/ http://webcan.es.utoronto.ca/people/faculty/wortmann-ulrich/ Dept. of Earth Sciences Fax : 416 978 3938 University of Toronto Phone: 416 978 7084 22 Russell Street, Toronto, ON, Canada M5S 3B1

uliw avatar Dec 21 '19 14:12 uliw