Sanitize \r in changelog generator example

This commit is contained in:
Héctor Ramón Jiménez 2025-12-03 05:24:05 +01:00
parent 82544c39ca
commit 9d81ec8b42
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -354,7 +354,7 @@ impl PullRequest {
Ok(Self {
id: contribution.id,
title: schema.title,
description: schema.body,
description: schema.body.map(|body| body.replace("\r", "")),
labels: schema.labels.into_iter().map(|label| label.name).collect(),
author: schema.user.login,
created_at: schema.created_at.parse()?,