Skip to content

Commit cf3130c

Browse files
committed
#484 roclet: style files
1 parent b1c68f6 commit cf3130c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

R/roclet_rdx.R

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -568,12 +568,14 @@ merge.rd_section_examplex <- function(x, y, ...) {
568568
format.rd_section_examplex <- function(x, ...) {
569569
paste0(
570570
"\\section{Examples}{\n",
571-
paste0(if_else(
572-
is.na(x$value$caption),
573-
x$value$contents,
574-
paste0("\\subsection{", x$value$caption, "}{", x$value$contents, "}")
571+
paste0(
572+
if_else(
573+
is.na(x$value$caption),
574+
x$value$contents,
575+
paste0("\\subsection{", x$value$caption, "}{", x$value$contents, "}")
575576
),
576-
collapse = "\n"),
577+
collapse = "\n"
578+
),
577579
"}\n"
578580
)
579581
}

0 commit comments

Comments
 (0)