pkgdown
pkgdown copied to clipboard
pkgdown inserts white space after \doi{..}
pkgdown inserts a line break after rendering \doi{...}. This results in a redundant space when \doi{...} is followed by full stop (or other punctuation).
This was reported as an issue in Rdpack where references ending in doi get a superfluous space between it and the final dot. But this happens only when rendered by pkgdown (R doesn't insert a space in any format).
This seems to be purely a \doi rendering problem. Inserting the following in an Rd file
\doi{10.2307/2413326}.
is rendered as
<a href="https://doi.org/10.2307/2413326" class="external-link">doi:10.2307/2413326</a>
.</p></li>
(don't know what command to use for a reprex, tried pkgdown:::rd2XXX() calls but with no success).
For further examples, see https://github.com/GeoBosh/Rdpack/issues/33#issuecomment-2456867260 for the rendered html of several references.