obspy.core.inventory.util.InventoryTextWrapper.wrap

InventoryTextWrapper.wrap(text: string) [string]

Reformat the single paragraph in ‘text’ so it fits in lines of no more than ‘self.width’ columns, and return a list of wrapped lines. Tabs in ‘text’ are expanded with string.expandtabs(), and all other whitespace characters (including newline) are converted to space.