We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ba073c commit ab73fd3Copy full SHA for ab73fd3
R/tweak-reference.R
@@ -26,11 +26,14 @@ tweak_reference_highlighting <- function(html) {
26
# Fix seealso links
27
seealso_links <- xml2::xml_find_all(
28
html,
29
- "//code[a and normalize-space(text()) = '()']"
+ "//code[a and text() = '()']"
30
)
31
seealso_kids <- xml2::xml_children(seealso_links)
32
xml2::xml_text(seealso_kids) <- paste0(xml2::xml_text(seealso_kids), "()")
33
- text_nodes <- xml2::xml_find_all(seealso_links, "./text()[normalize-space(.) = '()']")
+ text_nodes <- xml2::xml_find_all(
34
+ seealso_links,
35
+ "./text()[normalize-space(.) = '()']"
36
+ )
37
xml2::xml_remove(text_nodes)
38
39
invisible()
0 commit comments