Re: Inline src org block element with containing inside item does not get exported when it contains a newline (was: Inline src block element not parsed correctly for export when in a list item)

2022-05-15 Thread Kaushal Modi
On Sat, May 14, 2022 at 5:39 AM Ihor Radchenko  wrote:
>
> I just tried again on the latest main and I cannot reproduce anymore.
> Though I do see the problem on bugfix.
>
> Can you please check again on your side?

I confirm -- I cannot reproduce the bug in Org mode version 9.5.3
(release_9.5.3-482-gd5a52b).

For reference, I tried the same bug recipe from my earlier email:
https://lists.gnu.org/r/emacs-orgmode/2022-03/msg8.html.



Re: Inline src org block element with containing inside item does not get exported when it contains a newline (was: Inline src block element not parsed correctly for export when in a list item)

2022-05-14 Thread Ihor Radchenko
Ihor Radchenko  writes:

> Confirmed.
>
> Interestingly, I cannot reproduce the bug using my personal branch at
> https://github.com/yantar92/org. The fix should be lurking somewhere
> close...

I just tried again on the latest main and I cannot reproduce anymore.
Though I do see the problem on bugfix.

Can you please check again on your side?

Best,
Ihor



Inline src org block element with containing inside item does not get exported when it contains a newline (was: Inline src block element not parsed correctly for export when in a list item)

2022-04-05 Thread Ihor Radchenko
Confirmed.

Interestingly, I cannot reproduce the bug using my personal branch at
https://github.com/yantar92/org. The fix should be lurking somewhere
close...

Kaushal Modi  writes:

> I believe I have come across a corner case issue where the inline src
> block element doesn't get parsed as one, if:

The element actually does get parsed. Once can check it by running M-:
(org-element-context) with point at the problematic inline src block.
However, the export is somehow broken.

> * Doesn't export correctly if inline src block is in a wrapped list
> - abcdefg abcdefg abcdefg abcdefg src_org[:exports code]{[[abc
>   def][bar]]}.

One observation is that export is again correct if I remove a '[' in the
link inside inline source block.

Best,
Ihor



Re: Inline src block element not parsed correctly for export when in a list item

2022-03-16 Thread Kaushal Modi
Hello,

Just pinging here again. Can someone confirm this bug?

--
Kaushal Modi

On Tue, Mar 1, 2022, 10:10 PM Kaushal Modi  wrote:

> Hello,
>
> I believe I have come across a corner case issue where the inline src
> block element doesn't get parsed as one, if:
>
> 1. That src block is in a list item (plain list, definition list, etc.),
> AND
> 2. That src block wraps around when auto-filling.
>
> This issue can be reproduced on the main branch:
>
> Org mode version 9.5 (release_9.5-505-gef666)
>
> MWE:
>
> =
> #+author:
> #+options: toc:nil
>
> Run ~C-c C-e t A~.
>
> * Doesn't export correctly if inline src block is in a wrapped list
> - abcdefg abcdefg abcdefg abcdefg src_org[:exports code]{[[abc
>   def][bar]]}.
> * Exports correctly
> ** .. if the inline src block wraps in a paragraph
> abcdefg abcdefg abcdefg abcdefg src_org[:exports code]{[[abc
> def][bar]]}.
> ** .. if the inline src block is in a list but doesn't wrap
> - abcdefg abcdefg abcdefg abcdefg src_org[:exports code]{[[abc def][bar]]}.
> =
>
> Upon pasting the above snippet in an Org buffer and running `C-c C-e t
> A`, I get:
>
> =
> Run `C-c C-e t A'.
>
>
> 1 Doesn't export correctly if inline src block is in a wrapped list
> ===
>
>   - abcdefg abcdefg abcdefg abcdefg src_org[:exports code]{[[abc
>   def][bar]]}.
>
>
> 2 Exports correctly
> 
>
> 2.1 .. if the inline src block wraps in a paragraph
> ~~~
>
>   abcdefg abcdefg abcdefg abcdefg `[[abc def][bar]]'.
>
>
> 2.2 .. if the inline src block is in a list but doesn't wrap
> 
>
>   - abcdefg abcdefg abcdefg abcdefg `[[abc def][bar]]'.
> =
>
>
> Note that incorrect export of the inline src block in section 1 above.
> The remaining sections exports correctly because either the inline src
> block is not in a list item, or it doesn't wrap to the next line.
>
> --
> Kaushal Modi
>


Inline src block element not parsed correctly for export when in a list item

2022-03-01 Thread Kaushal Modi
Hello,

I believe I have come across a corner case issue where the inline src
block element doesn't get parsed as one, if:

1. That src block is in a list item (plain list, definition list, etc.), AND
2. That src block wraps around when auto-filling.

This issue can be reproduced on the main branch:

Org mode version 9.5 (release_9.5-505-gef666)

MWE:

=
#+author:
#+options: toc:nil

Run ~C-c C-e t A~.

* Doesn't export correctly if inline src block is in a wrapped list
- abcdefg abcdefg abcdefg abcdefg src_org[:exports code]{[[abc
  def][bar]]}.
* Exports correctly
** .. if the inline src block wraps in a paragraph
abcdefg abcdefg abcdefg abcdefg src_org[:exports code]{[[abc
def][bar]]}.
** .. if the inline src block is in a list but doesn't wrap
- abcdefg abcdefg abcdefg abcdefg src_org[:exports code]{[[abc def][bar]]}.
=

Upon pasting the above snippet in an Org buffer and running `C-c C-e t
A`, I get:

=
Run `C-c C-e t A'.


1 Doesn't export correctly if inline src block is in a wrapped list
===

  - abcdefg abcdefg abcdefg abcdefg src_org[:exports code]{[[abc
  def][bar]]}.


2 Exports correctly


2.1 .. if the inline src block wraps in a paragraph
~~~

  abcdefg abcdefg abcdefg abcdefg `[[abc def][bar]]'.


2.2 .. if the inline src block is in a list but doesn't wrap


  - abcdefg abcdefg abcdefg abcdefg `[[abc def][bar]]'.
=


Note that incorrect export of the inline src block in section 1 above.
The remaining sections exports correctly because either the inline src
block is not in a list item, or it doesn't wrap to the next line.

--
Kaushal Modi