Skip to content

OpenGraph image for crates with linebreaks in the description differ from the website #11949

@vbfox

Description

@vbfox

Current Behavior

The current image at https://static.crates.io/og-images/zeroize.png contains "\n" characters:

Image

They are incuded in the Cargo.toml:

[package]
authors = ["The RustCrypto Project Developers"]
categories = ["cryptography", "memory-management", "no-std", "os"]
description = """
Securely clear secrets from memory with a simple trait built on
stable Rust primitives which guarantee memory is zeroed using an
operation will not be 'optimized away' by the compiler.
Uses a portable pure Rust implementation that works everywhere,
even WASM!
"""
edition = "2021"

But don't show in the webpage:

Image

This might just be some invalidation missing as running this repository locally show a different result with the linebreaks rendered.

Image

But this result is still different from the website result where the linebreaks are simply ignored and shown as a space.

Expected Behavior

The rendering of the description in the OpenGraph image should be predictible and as similar as the webpage as possible.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions