Why do the numbered remarks in my data not appear on new lines on my templates?


Question

When importing the data into OpenGround, when previewing the data on the templates, any remarks that appeared on separate lines now all appear on one line. How can the line feeds be put back in automatically?

Answer

Use the following expression in your templates instead of the location details remarks field;

substitute(substitute(substitute(substitute(substitute(substitute(substitute(substitute(substitute([LocationDetails.Remarks], '2. ', '\n2. '), '3. ', '\n3. '), '4. ', '\n4. '), '5. ', '\n5. '), '6. ', '\n6. '), '7. ', '\n7. '), '8. ', '\n8. '), '9. ', '\n9. '), '10. ', '\n10. ')

n.b. this will only work for remarks that are numbered. Other expressions may be needed to do similar workings for other situations.

Explanation

The issue is caused by the data being exported into AGS or similar (AGS does not support multi-lined files) and therefore the line breaks not existing in the data anymore. Therefore all we can do is try and search for something that would cause a new line and put a new line in its spot.

In the above expression, we search for any number value with a dot and a space after it (e.g. '1. ') and replace this with the same value and a line feed (e.g '\n1. ').