jeremy-compostella / org-msg

OrgMsg is a GNU/Emacs global minor mode mixing up Org mode and Message mode to compose and reply to emails in a Outlook HTML friendly style.
GNU General Public License v3.0
276 stars 56 forks source link

Error export code block with fringe folding symbols #150

Closed danielfleischer closed 2 years ago

danielfleischer commented 2 years ago

Writing a python code block, edit it using C-c ', having elpy enabled puts folding symbols on functions in the fringe. Somehow it causes an error when trying to create an HTML email; e.g. when calling org-msg-preview one gets substring: Args out of range: " ", 0, -3.

Tested the cause by disabling elpy, removing code that has a folding sign, disabling folding in elpy customization. It all points to the fringe indicators.

Thanks!

jeremy-compostella commented 2 years ago

I could not reproduce this issue with the following simple python src block:

#+begin_src python
  def toto():
      pass

  def titi(data_list):
      for item in data_list.item():
        print(item)
#+end_src

I hit C-c ' Then on a function I call elpy-folding-toggle-at-point. The function is folded. I hit C-c ' it goes back to the mail composer buffer in which the function is unfolded.

danielfleischer commented 2 years ago

But does org-msg-preview work with HTML output?

danielfleischer commented 2 years ago

OK, it's a general org html export issue; taking it upstream.