semantic_release.commit_parser.util module#

semantic_release.commit_parser.util.parse_paragraphs(text: str) list[str][source]#

This will take a text block and return a list containing each paragraph with single line breaks collapsed into spaces.

To handle Windows line endings, carriage returns ‘r’ are removed before separating into paragraphs.

Parameters:

text – The text string to be divided.

Returns:

A list of condensed paragraphs, as strings.