<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to use python to update user profile description with multiple lines in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-use-python-to-update-user-profile/m-p/1584841#M73737</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/358277"&gt;@ThomasColson1&lt;/a&gt;,&amp;nbsp;I used Fiddler to see what was being sent when updating a profile's description.&amp;nbsp; I found&amp;nbsp;&lt;STRONG&gt;&amp;amp;#13;&lt;/STRONG&gt; was used for a carriage return.&amp;nbsp; According to this &lt;A href="https://www.ascii-code.com/#:~:text=CR-,%26%2313%3B,-Carriage%20Return" target="_self"&gt;link&lt;/A&gt;, this is the HTML Number.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;user.update(description='this is &amp;amp;#13;an example')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;returns the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JakeSkinner_0-1739448063464.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125230i228F32AC33253FB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JakeSkinner_0-1739448063464.png" alt="JakeSkinner_0-1739448063464.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2025 12:01:54 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2025-02-13T12:01:54Z</dc:date>
    <item>
      <title>How to use python to update user profile description with multiple lines</title>
      <link>https://community.esri.com/t5/python-questions/how-to-use-python-to-update-user-profile/m-p/1584077#M73731</link>
      <description>&lt;P&gt;How to use python to update user profile description with multiple lines? Using&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.gis.toc.html#arcgis.gis.User.update" target="_blank"&gt;arcgis.gis module | ArcGIS API for Python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried:&amp;nbsp;&lt;/P&gt;&lt;P&gt;for u in range(len(users)):&lt;BR /&gt;users[u].update(description='First line' chr(10)'Second line')&lt;/P&gt;&lt;P&gt;for u in range(len(users)):&lt;BR /&gt;users[u].update(description='First line' + chr(10)+ 'Second line')&lt;/P&gt;&lt;P&gt;for u in range(len(users)):&lt;BR /&gt;users[u].update(description='First line \n Second line')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and every single possible variation of python new line and all I get is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThomasColson1_0-1739291088693.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125085i77B6734EE96C80DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThomasColson1_0-1739291088693.png" alt="ThomasColson1_0-1739291088693.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I need is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThomasColson1_1-1739291123559.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125086iF493134A9789E58E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThomasColson1_1-1739291123559.png" alt="ThomasColson1_1-1739291123559.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Declaring a string doesn't work either. No matter what, it puts all the text on a single line in the profile.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 16:27:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-use-python-to-update-user-profile/m-p/1584077#M73731</guid>
      <dc:creator>ThomasColson1</dc:creator>
      <dc:date>2025-02-11T16:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python to update user profile description with multiple lines</title>
      <link>https://community.esri.com/t5/python-questions/how-to-use-python-to-update-user-profile/m-p/1584235#M73732</link>
      <description>&lt;P&gt;Possibly might accept some html like &amp;lt;br&amp;gt; but unlikely.&amp;nbsp; &amp;nbsp;I'd enter it manually then read the description value returned from the Python API if you haven't tried that already.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 21:04:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-use-python-to-update-user-profile/m-p/1584235#M73732</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2025-02-11T21:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python to update user profile description with multiple lines</title>
      <link>https://community.esri.com/t5/python-questions/how-to-use-python-to-update-user-profile/m-p/1584841#M73737</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/358277"&gt;@ThomasColson1&lt;/a&gt;,&amp;nbsp;I used Fiddler to see what was being sent when updating a profile's description.&amp;nbsp; I found&amp;nbsp;&lt;STRONG&gt;&amp;amp;#13;&lt;/STRONG&gt; was used for a carriage return.&amp;nbsp; According to this &lt;A href="https://www.ascii-code.com/#:~:text=CR-,%26%2313%3B,-Carriage%20Return" target="_self"&gt;link&lt;/A&gt;, this is the HTML Number.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;user.update(description='this is &amp;amp;#13;an example')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;returns the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JakeSkinner_0-1739448063464.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/125230i228F32AC33253FB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JakeSkinner_0-1739448063464.png" alt="JakeSkinner_0-1739448063464.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 12:01:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-use-python-to-update-user-profile/m-p/1584841#M73737</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2025-02-13T12:01:54Z</dc:date>
    </item>
  </channel>
</rss>

