This Python label properties expression ought to add a new line but it fails to do so. Any clues are appreciated.
[Contour] + ' ft NAVD88' + '\n' + str(float([Contour]) + 0.79) + ' ft MLLW'
from
Specify text for labels—ArcGIS Pro | Documentation
A label expression can be either a simple single-line expression or a more complex expression spanning multiple lines of code and using the parser's programming logic. Arcade enables complex expressions by default. When using Python, VBScript, or JScript, check the Advanced check box and wrap the code in a function to enable multiline expressions.
So you need to write a "def"
I think you're confusing multi-line labels with multi-line expressions. This single-line expression works properly in my testing.
Another bug?! This software is maddning. I am on v3.4. How about you KenBuja?
You didn't have "Remove extra line breaks" checked maybe? I tend to use ''
I did try '' to no avail before posting. Remove extra line breaks is unchecked.
This was on 3.5.2
Taking a quick look through ArcGIS Pro 3.4 Issues Addressed and ArcGIS Pro 3.5 Issues Addressed, nothing in Pro 3.4 patches or Pro 3.5 seems to involve a labeling defect that would cause this difference between versions.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.