From a7c6b165e60022a0fda3d4965cd07d32574ba2fb Mon Sep 17 00:00:00 2001 From: David Gregorczyk <54440227+d-gregorczyk@users.noreply.github.com> Date: Thu, 13 Jul 2023 10:13:41 +0200 Subject: [PATCH] Fix appendix numbering issue in references (#190) * Fix appendix numbering issue in references. * #189 Add changelog entry. --- .../kotlin/org/sdpi/asciidoc/extension/NumberingProcessor.kt | 2 +- CHANGELOG.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.ci/asciidoc-converter/src/main/kotlin/org/sdpi/asciidoc/extension/NumberingProcessor.kt b/.ci/asciidoc-converter/src/main/kotlin/org/sdpi/asciidoc/extension/NumberingProcessor.kt index 593c505..99b6825 100644 --- a/.ci/asciidoc-converter/src/main/kotlin/org/sdpi/asciidoc/extension/NumberingProcessor.kt +++ b/.ci/asciidoc-converter/src/main/kotlin/org/sdpi/asciidoc/extension/NumberingProcessor.kt @@ -117,7 +117,7 @@ class NumberingProcessor( node.wrapped.id, if (isInAppendix()) { if (node.wrapped.isAppendix()) { LabelInfo( - (currentAppendix - 1).toString(), + currentAppendix.toString(), LabelSource.APPENDIX, currentVolumeCaption, refText diff --git a/CHANGELOG.md b/CHANGELOG.md index ef8fcc9..b71088a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,8 @@ Each section shall contain a list of action items of the following format: `