MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / multiple_line_breaker

Function multiple_line_breaker

commitizen/cz/utils.py:18–19  ·  view source on GitHub ↗
(answer: str, sep: str = "|")

Source from the content-addressed store, hash-verified

16
17
18def multiple_line_breaker(answer: str, sep: str = "|") -> str:
19 return "\n".join(line.strip() for line in answer.split(sep) if line)
20
21
22def strip_local_version(version: str) -> str:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected