obspy.core.inventory.util.InventoryTextWrapper._split

InventoryTextWrapper._split(text : string) → [string]

Split the text to wrap into indivisible chunks. Chunks are not quite the same as words; see _wrap_chunks() for full details. As an example, the text

Look, goof-ball use the -b option!
breaks into the following chunks:
‘Look,’, ‘ ‘, ‘goof-‘, ‘ball’, ‘ ‘, ‘’, ‘ ‘, ‘use’, ‘ ‘, ‘the’, ‘ ‘, ‘-b’, ‘ ‘, ‘option!’
if break_on_hyphens is True, or in:
‘Look,’, ‘ ‘, ‘goof-ball’, ‘ ‘, ‘’, ‘ ‘, ‘use’, ‘ ‘, ‘the’, ‘ ‘, ‘-b’, ‘ ‘, option!’

otherwise.