(Shortest import: from brian2.utils.stringtools import strip_empty_lines)
from brian2.utils.stringtools import strip_empty_lines)
Removes all empty lines from the multi-line string s.
s
Examples
>>> multiline = '''A string with ... ... an empty line.''' >>> print(strip_empty_lines(multiline)) A string with an empty line.