Continue numbering from any previous numbered snippet with +n, even when previous...
authorniels giesen <niels.giesen@gmail.com>
Fri, 16 Sep 2011 20:32:38 +0000 (20:32 +0000)
committerCarsten Dominik <carsten.dominik@gmail.com>
Sat, 8 Oct 2011 14:30:56 +0000 (16:30 +0200)
commita6d74af2b93ba31d367f21bad9fef18d19ceb931
tree14bd12f2257b2fa136b837f14fdc395c3e1371a4
parent468aa115ef3303b3fa014965a83a7ef694992861
Continue numbering from any previous numbered snippet with +n, even when previous numbered snippet does not immediately precede it.

* org-mode/lisp/org-exp.el (org-export-number-lines):

  Check whether number parameter (this is a numbered block!) is
  non-nil as well as whether cont is nil (this numbered block should
  *not* continue numbering where we left off before!) before resetting
  the count to zero.

  From the docs:

    If you use a `+n' switch, the numbering from the previous
    numbered snippet will be continued in the current one.

  With this change I believe the code complies with the docs.
lisp/org-exp.el