-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
Description
Please describe the module you would like to add to bricks
A simple brick that splits a texts by newline characters.
Do you already have an implementation?
ATTRIBUTE: str = "text" # only text attributes
def newline_splitter(text: str) -> List[str]:
splits = text.strip().split("\n")
return [val for val in splits if len(val) > 0]