surf icon indicating copy to clipboard operation
surf copied to clipboard

docs.rs: newlines in docstrings?

Open aldanor opened this issue 5 years ago • 2 comments

Not a critical thing, but an annoyance that I haven't see for other crates, not sure why it's happening here.

Example: https://docs.rs/surf/2.1.0/src/surf/client.rs.html - where do those newlines in docstrings appear from?

image

This breaks line numbering in source docs, as they end like this:

image

aldanor avatar Nov 03 '20 09:11 aldanor

Doc comment lines are wrapped in a <span class="doccomment"> on docs.rs. Looks like the HTML contains a \r before the closing </span>, and \n between spans. Maybe an issue with crates published from Windows machines?

goto-bus-stop avatar Nov 03 '20 10:11 goto-bus-stop

Huh. Yes, @goto-bus-stop is correct, this was last published from my Windows desktop.

Fishrock123 avatar Nov 04 '20 18:11 Fishrock123