Skip to content

Commit

Permalink
Fix issue with documents that don't contain --- options
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelloharawild committed Dec 13, 2023
1 parent 09c6b3c commit a3f1434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/quiz-xml.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ fence_question <- function(x) {
generalfeedback = ""
)

if(length(opts) > 0) x <- x[-opts_loc]
if(length(opts_loc) > 0) x <- x[-opts_loc]
c(
paste0(":::{.question", paste0(" ", names(opts), "='", opts, collapse = "'"), "'}"),
x,
Expand Down

0 comments on commit a3f1434

Please sign in to comment.