<?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: Word Wrap Using Python on Source Credits? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/word-wrap-using-python-on-source-credits/m-p/12223#M986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If anything would work, it would be &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;\r\n&lt;/SPAN&gt;&lt;SPAN&gt;, not &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;\n&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Sep 2013 19:09:26 GMT</pubDate>
    <dc:creator>JasonScheirer</dc:creator>
    <dc:date>2013-09-30T19:09:26Z</dc:date>
    <item>
      <title>Word Wrap Using Python on Source Credits?</title>
      <link>https://community.esri.com/t5/python-questions/word-wrap-using-python-on-source-credits/m-p/12222#M985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wondering if there is a way to word wrap the output from the following, assuming I am trying to fit it into a small area and will&amp;nbsp; like decide how many words per line.&amp;nbsp; The code and a sample output are attached for your convenience. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;dyn type="document" property="service layer credits" separator="\n" showLayerNames="false" layerNameSeparator=": "/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sample Output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;World_Imagery - Source: Esri, DigitalGlobe, GeoEye, i-cubed, USDA, USGS, AEX, Getmapping, Aerogrid, IGN, IGP, swisstopo, and the GIS User Community&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Final goal is to be able to stack/wrap at every 4 or 5 words.&amp;nbsp; Thanks for the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FYI: I have tried implanting "\n" at several intervals with no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 18:53:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/word-wrap-using-python-on-source-credits/m-p/12222#M985</guid>
      <dc:creator>Tikvael_Sulaiman</dc:creator>
      <dc:date>2013-09-30T18:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Word Wrap Using Python on Source Credits?</title>
      <link>https://community.esri.com/t5/python-questions/word-wrap-using-python-on-source-credits/m-p/12223#M986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If anything would work, it would be &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;\r\n&lt;/SPAN&gt;&lt;SPAN&gt;, not &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;\n&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 19:09:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/word-wrap-using-python-on-source-credits/m-p/12223#M986</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2013-09-30T19:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Word Wrap Using Python on Source Credits?</title>
      <link>https://community.esri.com/t5/python-questions/word-wrap-using-python-on-source-credits/m-p/12224#M987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If anything would work, it would be &lt;SPAN style="font-family:Courier New;"&gt;\r\n&lt;/SPAN&gt;, not &lt;SPAN style="font-family:Courier New;"&gt;\n&lt;/SPAN&gt;.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tried the "\r\n" and still no difference.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 19:16:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/word-wrap-using-python-on-source-credits/m-p/12224#M987</guid>
      <dc:creator>Tikvael_Sulaiman</dc:creator>
      <dc:date>2013-09-30T19:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Word Wrap Using Python on Source Credits?</title>
      <link>https://community.esri.com/t5/python-questions/word-wrap-using-python-on-source-credits/m-p/12225#M988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a module in python that has some methods for wrapping text if you end up needing to do it manually:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/92810-Pythn-to-TextWrap"&gt;http://forums.arcgis.com/threads/92810-Pythn-to-TextWrap&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 20:49:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/word-wrap-using-python-on-source-credits/m-p/12225#M988</guid>
      <dc:creator>MattSayler</dc:creator>
      <dc:date>2013-10-01T20:49:09Z</dc:date>
    </item>
  </channel>
</rss>

