Skip to content

Commit ab73fd3

Browse files
committed
rm useless
1 parent 7ba073c commit ab73fd3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

R/tweak-reference.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ tweak_reference_highlighting <- function(html) {
2626
# Fix seealso links
2727
seealso_links <- xml2::xml_find_all(
2828
html,
29-
"//code[a and normalize-space(text()) = '()']"
29+
"//code[a and text() = '()']"
3030
)
3131
seealso_kids <- xml2::xml_children(seealso_links)
3232
xml2::xml_text(seealso_kids) <- paste0(xml2::xml_text(seealso_kids), "()")
33-
text_nodes <- xml2::xml_find_all(seealso_links, "./text()[normalize-space(.) = '()']")
33+
text_nodes <- xml2::xml_find_all(
34+
seealso_links,
35+
"./text()[normalize-space(.) = '()']"
36+
)
3437
xml2::xml_remove(text_nodes)
3538

3639
invisible()

0 commit comments

Comments
 (0)