Wondering if anyone else has experience anything like this.
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.
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.
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.
Any ideas or suggestions on what to check would be much appreciated.