Skip to content

Commit

Permalink
skip id for title when not necessary to avoid conflict with args
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@85440 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
deepayan committed Oct 30, 2023
1 parent 635a672 commit 16aaa40
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/library/tools/R/Rd2HTML.R
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,11 @@ Rd2HTML <-

## id can identify help page when combined with others, and
## also needed to form argument id-s programmatically
of0("<h2 id='", name2id(name), "'>")
if (!standalone) {
of0("<h2 id='", name2id(name), "'>")
}
else
of0("<h2>")
inPara <- NA
title <- Rd[[1L]]
info$name <- name
Expand Down

0 comments on commit 16aaa40

Please sign in to comment.