def FindLabel ( [Body] ): return [Body]
Solved! Go to Solution.
from textwrap import fill def FindLabel([BODY]): x = fill([BODY],40) return x
def FindLabel([BODY]): from textwrap import fill x = fill([BODY],40) return x
from textwrap import fill def FindLabel([BODY]): x = fill([BODY],40) return x
def FindLabel([BODY]): from textwrap import fill x = fill([BODY],40) return x
The first one worked great! The only thing I would change: The left justification butts up against the label box. But it does wrap nicely. Thanks, Matt!
from textwrap import wrap def FindLabel([BODY]): y = "" x = wrap([BODY],40) for item in x: y += " " + item + "\n" return y