Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkgdown inserts white space after \doi{..} #2809

Open
GeoBosh opened this issue Nov 6, 2024 · 0 comments
Open

pkgdown inserts white space after \doi{..} #2809

GeoBosh opened this issue Nov 6, 2024 · 0 comments

Comments

@GeoBosh
Copy link

GeoBosh commented Nov 6, 2024

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 GeoBosh/Rdpack#33 (comment) for the rendered html of several references.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants