소스 검색

Fix typo with background_size_fallback

tags/v0.3.0
Garrick Aden-Buie 7 년 전
부모
커밋
d69a999e59
3개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. +1
    -0
      .Rbuildignore
  2. +1
    -1
      R/write_theme.R
  3. +1
    -1
      inst/scripts/write_xaringan_theme_body.R

+ 1
- 0
.Rbuildignore 파일 보기

@@ -8,3 +8,4 @@
^_.+$
^docs$
^index\.Rmd$
^man-roxygen$

+ 1
- 1
R/write_theme.R 파일 보기

@@ -167,7 +167,7 @@ write_xaringan_theme <- function(
# prepare variables for template
body_font_family <- paste(c(text_font_family, text_font_family_fallback, text_font_base), collapse = ', ')
backround_size_fallback <- if (is.null(background_position)) "cover" else "100%"
background_size_fallback <- if (is.null(background_position)) "cover" else "100%"
background_size <- background_image %??% (background_size %||% background_size_fallback)
title_slide_background_size <- title_slide_background_size %||% (
title_slide_background_image %??% "cover"

+ 1
- 1
inst/scripts/write_xaringan_theme_body.R 파일 보기

@@ -41,7 +41,7 @@ for (var in f_args) {

# prepare variables for template
body_font_family <- paste(c(text_font_family, text_font_family_fallback, text_font_base), collapse = ', ')
backround_size_fallback <- if (is.null(background_position)) "cover" else "100%"
background_size_fallback <- if (is.null(background_position)) "cover" else "100%"
background_size <- background_image %??% (background_size %||% background_size_fallback)
title_slide_background_size <- title_slide_background_size %||% (
title_slide_background_image %??% "cover"

Loading…
취소
저장