Explorar el Código

Fix typo with background_size_fallback

tags/v0.3.0
Garrick Aden-Buie hace 7 años
padre
commit
d69a999e59
Se han modificado 3 ficheros con 3 adiciones y 2 borrados
  1. +1
    -0
      .Rbuildignore
  2. +1
    -1
      R/write_theme.R
  3. +1
    -1
      inst/scripts/write_xaringan_theme_body.R

+ 1
- 0
.Rbuildignore Ver fichero

^_.+$ ^_.+$
^docs$ ^docs$
^index\.Rmd$ ^index\.Rmd$
^man-roxygen$

+ 1
- 1
R/write_theme.R Ver fichero

# prepare variables for template # prepare variables for template
body_font_family <- paste(c(text_font_family, text_font_family_fallback, text_font_base), collapse = ', ') 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) background_size <- background_image %??% (background_size %||% background_size_fallback)
title_slide_background_size <- title_slide_background_size %||% ( title_slide_background_size <- title_slide_background_size %||% (
title_slide_background_image %??% "cover" title_slide_background_image %??% "cover"

+ 1
- 1
inst/scripts/write_xaringan_theme_body.R Ver fichero



# prepare variables for template # prepare variables for template
body_font_family <- paste(c(text_font_family, text_font_family_fallback, text_font_base), collapse = ', ') 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) background_size <- background_image %??% (background_size %||% background_size_fallback)
title_slide_background_size <- title_slide_background_size %||% ( title_slide_background_size <- title_slide_background_size %||% (
title_slide_background_image %??% "cover" title_slide_background_image %??% "cover"

Cargando…
Cancelar
Guardar