Skip to content

Extra newlines appear in rendered README  #965

Closed
@sunjay

Description

@sunjay

I'm so excited that README files now show up in crates.io! I started using it without even realising and then when I saw that it was there I was so happy! 😄

I noticed that the css-color-parser has a lot of extra newlines for some reason when it is shown on crates.io vs. when it is shown on GitHub. There is a lot of extra space between bullets and after paragraphs which GitHub is able to collapse but crates.io does not.

Looking at the README, the author of that package seems to have added a <br> after every line for whatever reason. This is further exacerbated on crates.io in certain places because the inserted paragraph tags have additional space due to the <br>s added everywhere (see just after the word Reliable in the README). Crates.io should probably collapse all of that extra space together in the same way that GitHub does.

GitHub: https://github.com/7thSigil/css-color-parser-rs
Crates.io: https://crates.io/crates/css-color-parser

Screenshots: (click to view full size)

screencapture-crates-io-crates-css-color-parser-1503115712895

screencapture-github-7thsigil-css-color-parser-rs-1503115691837

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions