How to use python to update user profile description with multiple lines? Using arcgis.gis module | ArcGIS API for Python
I've tried:
for u in range(len(users)):
users[u].update(description='First line' chr(10)'Second line')
for u in range(len(users)):
users[u].update(description='First line' + chr(10)+ 'Second line')
for u in range(len(users)):
users[u].update(description='First line \n Second line')
and every single possible variation of python new line and all I get is
What I need is:
Declaring a string doesn't work either. No matter what, it puts all the text on a single line in the profile.
Solved! Go to Solution.
Hi @ThomasColson1, I used Fiddler to see what was being sent when updating a profile's description. I found was used for a carriage return. According to this link, this is the HTML Number.
user.update(description='this is an example')
returns the following:
Possibly might accept some html like <br> but unlikely. I'd enter it manually then read the description value returned from the Python API if you haven't tried that already.
Hi @ThomasColson1, I used Fiddler to see what was being sent when updating a profile's description. I found was used for a carriage return. According to this link, this is the HTML Number.
user.update(description='this is an example')
returns the following: