Skip to content

Commit

Permalink
Fix typo in <dl> header (#1309)
Browse files Browse the repository at this point in the history
  • Loading branch information
klmr committed Apr 24, 2020
1 parent 3b43ddb commit e9fc93b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/rd-html.R
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ as_html.tag_enumerate <- function(x, ...) {
}
#' @export
as_html.tag_describe <- function(x, ...) {
paste0("<dl'>\n", parse_descriptions(x[-1], ...), "\n</dl>")
paste0("<dl>\n", parse_descriptions(x[-1], ...), "\n</dl>")
}

# Effectively does nothing: only used by parse_items() to split up
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-rd-html.R
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ test_that("nested item with whitespace parsed correctly", {
This text is indented in a way pkgdown doesn't like.
}}")
expect_equal(out, c(
"<dl'>",
"<dl>",
"<dt>Label</dt><dd><p>This text is indented in a way pkgdown doesn't like.</p></dd>",
"</dl>"
))
Expand Down

0 comments on commit e9fc93b

Please sign in to comment.