spec.fold(value)
The folded value of a prose string: stripped, every line break one space.
Each line break (CRLF, a lone CR or LF) with the blanks and tabs around it becomes one space; all other whitespace is kept. U+2028 and U+0085 are no line break for this rule.
from babregen.spec import fold print(repr(fold(" Adds numbers," + chr(10) + " and sums them. ")))
'Adds numbers, and sums them.'