def filldedent(s, w=70):
 return ('\n' + fill(dedent(str(s)).strip('\n'), width=w))

def filldedent ( s , w = 70 ) : return ( '\n' + fill ( dedent ( str ( s ) ) . strip ( '\n' ) , width = w ) )
strips leading and trailing empty lines from a copy of s .