diff --git a/.github/workflows/build-ss3-manual-html.yml b/.github/workflows/build-ss3-manual-html.yml index 8334006..61330cb 100644 --- a/.github/workflows/build-ss3-manual-html.yml +++ b/.github/workflows/build-ss3-manual-html.yml @@ -137,13 +137,17 @@ jobs: # Add title to references where_add <- (grep("references csl-bib-body hanging-indent", html_txt, fixed = TRUE) - 1) + dat_num <- grep("data-number", html_txt) + dat_num_actual <- html_txt[dat_num] + dat_num_actual <- gsub(".*data-number=", "", dat_num_actual) + ref_num <- max(as.numeric(sub("\\D*(\\d+).*", "\\1", dat_num_actual))) + 1 html_txt <- append(html_txt, - '