(s)
Strip extraneous whitespace, add full-stops at end of each line.
Strip extraneous whitespace, add full-stops at end of each line.
Strip extraneous whitespace add full - stops at end of each line .
def mangle_comment(s):
  """Strip extraneous whitespace, add full-stops at end of each line."""
  if not isinstance(s, str):
    return "\n".join(mangle_comment(line) for line in s)
  elif not s:
    return "<no header comment found>."
  else:
    out = "\n".join(" ".join(line.split()) for line in s.splitlines())
    if not out.endswith("."):
      out += "."
    return out
def mangle_comment ( s ) : if not isinstance ( s , str ) : return "\n" . join ( mangle_comment ( line ) for line in s ) elif not s : return "<no header comment found>." else : out = "\n" . join ( " " . join ( line . split ( ) ) for line in s . splitlines ( ) ) if not out . endswith ( "." ) : out += "." return out