Skip to content

Commit e4844e8

Browse files
committed
format some code
1 parent 91dd706 commit e4844e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/resources/rmd/hooks.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ knitr_hooks <- function(format, resourceDir, handledLanguages) {
420420
# if there is a label, additional classes, a forwardAttr, or a cell.cap
421421
# then the user is deemed to have implicitly overridden results = "asis"
422422
# (as those features don't work w/o an enclosing div)
423-
needCell <- isTRUE(nzchar(label)) ||
423+
needCell <- isTRUE(nzchar(label)) ||
424424
length(classes) > 1 ||
425425
isTRUE(nzchar(forwardAttr)) ||
426426
isTRUE(nzchar(cell.cap))
@@ -429,7 +429,8 @@ knitr_hooks <- function(format, resourceDir, handledLanguages) {
429429
} else {
430430
paste0(
431431
options[["indent"]], "::: {",
432-
labelId(label), paste(classes, collapse = " ") ,forwardAttr, "}\n", x, "\n", cell.cap ,
432+
labelId(label), paste(classes, collapse = " "),
433+
forwardAttr, "}\n", x, "\n", cell.cap,
433434
options[["indent"]], ":::"
434435
)
435436
}

0 commit comments

Comments
 (0)