Skip to content

fix(cve): normalize wrapped descriptions - #238

Open
secgabriel wants to merge 1 commit into
archlinux:masterfrom
secgabriel:fix/cve-description-linebreaks
Open

secgabriel wants to merge 1 commit into
archlinux:masterfrom
secgabriel:fix/cve-description-linebreaks

Conversation

@secgabriel

Copy link
Copy Markdown

CVE descriptions may contain line breaks introduced by the source formatting. These breaks can make descriptions harder to read and leave sentences split across multiple lines.

This change normalizes wrapped descriptions when adding a new CVE or merging a description into an existing one. It preserves paragraph boundaries and shorter line breaks to avoid changing the structure of the text unnecessarily.

A regression test has been added to verify that wrapped lines are joined while separate paragraphs remain intact.

Testing

make test — 217 tests passed.
isort check passed.

Fixes #233

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

After adding a CVE, the extra linebreaks of the description are not removed

1 participant