Skip to content

Commit

Permalink
wrong logic in the PR #1170 797c7fa; should use || instead of &&
Browse files Browse the repository at this point in the history
I discovered this while investigating #1216
  • Loading branch information
yihui committed Dec 12, 2017
1 parent 07f7d8e commit c10baa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: rmarkdown
Type: Package
Title: Dynamic Documents for R
Version: 1.8.3
Version: 1.8.4
Authors@R: c(
person("JJ", "Allaire", role = "aut", email = "jj@rstudio.com"),
person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),
Expand Down
2 changes: 1 addition & 1 deletion R/md_document.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ md_document <- function(variant = "markdown_strict",
pandoc_args = NULL) {

# base pandoc options for all markdown output
args <- c(if (variant != "markdown" && !preserve_yaml) "--standalone")
args <- c(if (variant != "markdown" || !preserve_yaml) "--standalone")

# table of contents
args <- c(args, pandoc_toc_args(toc, toc_depth))
Expand Down

0 comments on commit c10baa5

Please sign in to comment.