Login  Register

Re: Appendix sectnums

Posted by mojavelinux on Oct 17, 2013; 4:12am
URL: https://discuss.asciidoctor.org/Appendix-sectnums-tp706p814.html

On Wed, Oct 16, 2013 at 1:23 PM, pepijnve [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Looks like a clean fix to me. Keeps all the numbering logic together in one place.

Excellent.
 

Is the caption bit in assign_index needed though? I would expect assign_caption to handle that already.

Suffice to say, that code needs some refactoring. The assign_caption is currently biased towards assigning the caption (i.e., legend) to a formal block (like a Table 1, Figure 2, Example 3, etc), so it won't work for the appendix case atm. There's an open issue to rework how those captions are created, so I'll tack this refactoring onto that issue.

-Dan


--