Bugfix for XML rendering MPA TOC

git-svn-id: https://svn.libreccm.org/ccm/trunk@6218 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2019-09-20 18:31:46 +00:00
parent e8a1121c07
commit 756a66eaab
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ public class ArticleSectionXMLGenerator implements ExtraXMLGenerator {
sectionElem.setCDATASection(section.getTitle()); sectionElem.setCDATASection(section.getTitle());
final String link; final String link;
if (currentPage.getPageNumber() == pageNr) { if (currentPage.getPageNumber() == pageNr) {
link = String.format("#section-%d", pageNr); link = String.format("#section-%d", sectionNr);
} else { } else {
link = String.format("?page=%d#section-%d", pageNr, sectionNr); link = String.format("?page=%d#section-%d", pageNr, sectionNr);
} }