Skip to content

Commit

Permalink
leave tbl.cap alone; don't convert it to tab.cap, since Quarto has it…
Browse files Browse the repository at this point in the history
…s own special handling of `tbl-cap`

partially revert 429e596
  • Loading branch information
yihui committed Dec 19, 2023
1 parent 429e596 commit 1bb83af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: knitr
Type: Package
Title: A General-Purpose Package for Dynamic Report Generation in R
Version: 1.45.9
Version: 1.45.10
Authors@R: c(
person("Yihui", "Xie", role = c("aut", "cre"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")),
person("Abhraneel", "Sarma", role = "ctb"),
Expand Down
2 changes: 1 addition & 1 deletion R/defaults.R
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ opts_chunk_attr = local({
opts$fig.id = 'logical'
opts[c(
'opts.label', 'resize.width', 'resize.height', 'fig.alt', 'fig.link', 'fig.sep',
'tab.cap', 'tbl.cap', 'ffmpeg.bitrate', 'ffmpeg.format'
'tab.cap', 'ffmpeg.bitrate', 'ffmpeg.format'
)] = 'character'
opts$lang = 'list'
opts$R.options = 'list'
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ fix_names = function(x, char1, char2, aliases) {
}

dot_names = function(x) {
fix_names(x, '-', '.', c(fig.format = 'dev', fig.dpi = 'dpi', tbl.cap = 'tab.cap'))
fix_names(x, '-', '.', c(fig.format = 'dev', fig.dpi = 'dpi'))
}

dash_names = function(x) {
Expand Down

0 comments on commit 1bb83af

Please sign in to comment.