浏览代码

Fix duplicated extra fonts in output from template

tags/v0.3.0
父节点
当前提交
c4a10d6af5
共有 2 个文件被更改,包括 2 次插入 和 0 次删除
  1. +1
    -0
      R/style_xaringan.R
  2. +1
    -0
      inst/scripts/style_xaringan_body.R

+ 1
- 0
R/style_xaringan.R 查看文件

@@ -155,6 +155,7 @@ style_xaringan <- function(
}
extra_font_imports <- if (is.null(extra_fonts)) "" else list2fonts(extra_fonts)
extra_font_imports <- paste(extra_font_imports, collapse = "\n")
# convert NA arguments to NULL
for (var in f_args) {

+ 1
- 0
inst/scripts/style_xaringan_body.R 查看文件

@@ -29,6 +29,7 @@ for (var in f_args[grepl("font_google$", f_args)]) {
}

extra_font_imports <- if (is.null(extra_fonts)) "" else list2fonts(extra_fonts)
extra_font_imports <- paste(extra_font_imports, collapse = "\n")

# convert NA arguments to NULL
for (var in f_args) {

正在加载...
取消
保存