<?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: Newlines in labels not working in some instances on export to PDF in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/newlines-in-labels-not-working-in-some-instances/m-p/178933#M13739</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's an update that makes it even more strange... I've just tested and realised that the script seems to run fine if run from ArcMap locally on the server. But I have this published as a GP service, and it seems to be when run via the GP service that the labels sometimes display as that single line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried republishing the service with no change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2015 12:21:53 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2015-10-07T12:21:53Z</dc:date>
    <item>
      <title>Newlines in labels not working in some instances on export to PDF</title>
      <link>https://community.esri.com/t5/python-questions/newlines-in-labels-not-working-in-some-instances/m-p/178932#M13738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wondering if anyone else has experience anything like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a script that takes an mxd with data driven pages enabled, sets a definition query to narrow down which pages to export, refreshes and exports the layout to a pdf. It has been working fine for over a year, but recently we've noticed quite a few labels where the newlines (carriage returns) are not working, resulting in a single long line of text instead of multiple lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment I'm stumped as to why it's happening - the only clues are that it seems to be labels which are on/outside/close to the mask (the polygon layer used for the data driven pages), and recently the server was upgraded to 10.3.1 from 10.2.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached images show what I mean. One shows three correctly labels as per a screenshot from the mxd open in ArcMap. One then shows the label for 'Block 2B' as one single line as per the output from the arcpy script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas or suggestions on what to check would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="correct_block_labels.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/130059_correct_block_labels.png" style="height: auto;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG alt="INCORRECT_block_label.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/130060_INCORRECT_block_label.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 11:40:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/newlines-in-labels-not-working-in-some-instances/m-p/178932#M13738</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-10-07T11:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Newlines in labels not working in some instances on export to PDF</title>
      <link>https://community.esri.com/t5/python-questions/newlines-in-labels-not-working-in-some-instances/m-p/178933#M13739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's an update that makes it even more strange... I've just tested and realised that the script seems to run fine if run from ArcMap locally on the server. But I have this published as a GP service, and it seems to be when run via the GP service that the labels sometimes display as that single line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried republishing the service with no change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 12:21:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/newlines-in-labels-not-working-in-some-instances/m-p/178933#M13739</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-10-07T12:21:53Z</dc:date>
    </item>
  </channel>
</rss>

