<?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 Text Element - New Line in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/text-element-new-line/m-p/433113#M34043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a text element in a map document that I would like to update from a Python tool in ArcMap/ArcCatalog, however I'm having trouble getting the text to go to a new line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So this works fine if I write this in the code like this for example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;notesMap = "Note: Cadastral boundaries are indicative only. \nThis Council provides no warranties \nin terms of property boundaries."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This updates the text element with \n starting a new line&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However when I change it to this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;notesMap = arcpy.GetParameterAsText(0) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and put that text in a python tool in a toolbox, it does not read the \n bits and just add them into the text element instead of jumping to a new line?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2012 22:22:58 GMT</pubDate>
    <dc:creator>ShaunWeston</dc:creator>
    <dc:date>2012-04-25T22:22:58Z</dc:date>
    <item>
      <title>Text Element - New Line</title>
      <link>https://community.esri.com/t5/python-questions/text-element-new-line/m-p/433113#M34043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a text element in a map document that I would like to update from a Python tool in ArcMap/ArcCatalog, however I'm having trouble getting the text to go to a new line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So this works fine if I write this in the code like this for example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;notesMap = "Note: Cadastral boundaries are indicative only. \nThis Council provides no warranties \nin terms of property boundaries."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This updates the text element with \n starting a new line&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However when I change it to this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;notesMap = arcpy.GetParameterAsText(0) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and put that text in a python tool in a toolbox, it does not read the \n bits and just add them into the text element instead of jumping to a new line?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 22:22:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/text-element-new-line/m-p/433113#M34043</guid>
      <dc:creator>ShaunWeston</dc:creator>
      <dc:date>2012-04-25T22:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Text Element - New Line</title>
      <link>https://community.esri.com/t5/python-questions/text-element-new-line/m-p/433114#M34044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;arcpy.GetParameterAsText(0).replace('\\n', '\r\n')&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; to get the proper line breaks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 08:15:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/text-element-new-line/m-p/433114#M34044</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2012-04-26T08:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Text Element - New Line</title>
      <link>https://community.esri.com/t5/python-questions/text-element-new-line/m-p/433115#M34045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah awesome that does it! Thanks heaps for that Jason.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 20:33:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/text-element-new-line/m-p/433115#M34045</guid>
      <dc:creator>ShaunWeston</dc:creator>
      <dc:date>2012-04-26T20:33:07Z</dc:date>
    </item>
  </channel>
</rss>

