def FindLabel ( [Body] ): return [Body]
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 wrap def FindLabel([BODY]): y = "" x = wrap([BODY],40) for item in x: y += " " + item + "\n" return y
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!
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.