From e0c3ceaa9d5b1ed58ed7ab63b47f45278ce98637 Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Sat, 6 May 2023 22:25:26 -0500 Subject: [PATCH] fix #929: put figure numbers in --- R/html.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/html.R b/R/html.R index 988d6c5db..a4ad1543a 100644 --- a/R/html.R +++ b/R/html.R @@ -722,7 +722,7 @@ parse_fig_labels = function(content, global = FALSE) { labs[[i]] = character(length(lab)) next } - labs[[i]] = label_prefix(type, sep = ': ')(num) + labs[[i]] = sprintf('%s', label_prefix(type, sep = ': ')(num)) k = max(figs[figs <= i]) content[k] = paste(c(content[k], sprintf('', lab)), collapse = '') }, tab = {