Skip to content

Commit

Permalink
Remove trailing comma in glue::glue()
Browse files Browse the repository at this point in the history
This trailing comma has no functional role and seems to be at the origin of carpentries#149, as reported in tidyverse/glue#320.
  • Loading branch information
Bisaloo committed Mar 5, 2024
1 parent 1bc5753 commit 4984a7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/fix_links.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ make_link_patterns <- function(ns = "md:") {
predicate <- gsb("(<ctext('({{')> and <ctext('}}')>)")
asis_nodes <- "text[@asis][text()=']']"
destination <- glue::glue(
".//{ns}{asis_nodes}/following-sibling::{ns}text[{predicate}]",
".//{ns}{asis_nodes}/following-sibling::{ns}text[{predicate}]"
)
return(destination)
}
Expand Down

0 comments on commit 4984a7e

Please sign in to comment.