Re: Incorrect numbering of tables (and other elements like figures) [Org 9.6]

2022-12-13 Thread Kaushal Modi
On Tue, Dec 13, 2022 at 3:52 AM Ihor Radchenko  wrote:

> Kaushal Modi  writes:
>
> > Since Org 9.6, I am seeing that the numbering of tables (and other
> elements
> > like figures) resets to 1 and stays so, thought I cannot see a pattern of
> > why that happens.
> >
> > Org version: Org mode version 9.6 (release_9.6-40-g49cf3e ..)
> >
> > Here's a small reproducible example that shows the problem in any
> exporter
> > (ox-ascii, ox-html, ..)
> > ...
>
> Thanks for reporting!
> Fixed on bugfix. With a test now.
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=bdb4c4c66
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=02909fe37
>
>
Thank you!

I confirm the fix. Also thanks for adding the test.


Re: Incorrect numbering of tables (and other elements like figures) [Org 9.6]

2022-12-13 Thread Ihor Radchenko
Kaushal Modi  writes:

> Since Org 9.6, I am seeing that the numbering of tables (and other elements
> like figures) resets to 1 and stays so, thought I cannot see a pattern of
> why that happens.
>
> Org version: Org mode version 9.6 (release_9.6-40-g49cf3e ..)
>
> Here's a small reproducible example that shows the problem in any exporter
> (ox-ascii, ox-html, ..)
> ...

Thanks for reporting!
Fixed on bugfix. With a test now.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=bdb4c4c66
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=02909fe37

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Incorrect numbering of tables (and other elements like figures) [Org 9.6]

2022-12-12 Thread Kaushal Modi
Hello,

Since Org 9.6, I am seeing that the numbering of tables (and other elements
like figures) resets to 1 and stays so, thought I cannot see a pattern of
why that happens.

Org version: Org mode version 9.6 (release_9.6-40-g49cf3e ..)

Here's a small reproducible example that shows the problem in any exporter
(ox-ascii, ox-html, ..)

=
#+title: Table numbering test
#+options: author:nil toc:nil

#+caption: Should be Table 1
| h1   | h2   | h3   |
|--+--+--|
| abcdefgh | ijklmnop | qrstuvwx |

#+caption: Should be Table 2
| h1   | h2   | h3   |
|--+--+--|
| abcdefgh | ijklmnop | qrstuvwx |

#+caption: Should be Table 3
| h1   | h2   | h3   |
|--+--+--|
| abcdefgh | ijklmnop | qrstuvwx |

#+caption: Should be Table 4
| h1   | h2   | h3   |
|--+--+--|
| abcdefgh | ijklmnop | qrstuvwx |
=

Output of C-c C-e t A:

=
 __

  TABLE NUMBERING TEST
 __


 h1h2h3
--
 abcdefgh  ijklmnop  qrstuvwx
Table 1: Should be Table 1

 h1h2h3
--
 abcdefgh  ijklmnop  qrstuvwx
Table 2: Should be Table 2

 h1h2h3
--
 abcdefgh  ijklmnop  qrstuvwx
Table 1: Should be Table 3

 h1h2h3
--
 abcdefgh  ijklmnop  qrstuvwx
Table 1: Should be Table 4
=



--
Kaushal Modi