def fmt(docstr):
 docstr = docstr.replace('\n', ' ')
 docstr = docstr.strip()
 return docstr

def fmt ( docstr ) : docstr = docstr . replace ( '\n' , ' ' ) docstr = docstr . strip ( ) return docstr
format a docstring for use as documentation in sample config .