Skip to content

Commit

Permalink
I don't think footnotes can be NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Aug 12, 2024
1 parent 29db1cd commit 033ba7f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions R/as_rtf.R
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@ as_rtf.fixed_design <- function(
text_font_size = text_font_size
)

if (!is.null(footnote)) {
ans <- r2rtf::rtf_footnote(ans, footnote, text_font_size = text_font_size)
}
ans <- r2rtf::rtf_footnote(ans, footnote, text_font_size = text_font_size)

# Prepare output
r2rtf::write_rtf(r2rtf::rtf_encode(ans), file)
Expand Down

0 comments on commit 033ba7f

Please sign in to comment.