(value)
return '\n'.join([line for line in value.split('\n') if line.strip()])
Template filter to remove blank lines.
Template filter to remove blank lines.
Template filter to remove blank lines .
def noblanklines(value):  # pylint: disable=g-bad-name
  """Template filter to remove blank lines."""
  return '\n'.join([line for line in value.split('\n') if line.strip()])
def noblanklines ( value ) : # pylint: disable=g-bad-name return '\n' . join ( [ line for line in value . split ( '\n' ) if line . strip ( ) ] )