<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Why do the numbered remarks in my data not appear on new lines on my templates?</title><link>https://communities.bentley.com/products/geotechnical1/w/wiki/50015/why-do-the-numbered-remarks-in-my-data-not-appear-on-new-lines-on-my-templates</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Why do the numbered remarks in my data not appear on new lines on my templates?</title><link>https://communities.bentley.com/products/geotechnical1/w/wiki/50015/why-do-the-numbered-remarks-in-my-data-not-appear-on-new-lines-on-my-templates</link><pubDate>Wed, 10 Jun 2020 01:20:19 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:69b9c509-211f-4dc0-b463-b035024c4796</guid><dc:creator>wiki.author</dc:creator><comments>https://communities.bentley.com/products/geotechnical1/w/wiki/50015/why-do-the-numbered-remarks-in-my-data-not-appear-on-new-lines-on-my-templates#comments</comments><description>Current Revision posted to gINT | Keynetix Wiki by wiki.author on 6/10/2020 1:20:19 AM&lt;br /&gt;
&lt;table style="border:0px solid #dce5f0;background-color:#dce5f0;" border="0"&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
			&lt;td style="text-align:right;"&gt;&lt;strong&gt;Product(s):&lt;/strong&gt;&lt;/td&gt;
			&lt;td&gt;Keynetix&lt;/td&gt;
			&lt;td&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
			&lt;td style="text-align:right;"&gt;&lt;strong&gt;Version(s):&lt;/strong&gt;&lt;/td&gt;
			&lt;td&gt;1.0&lt;/td&gt;
			&lt;td&gt;&lt;/td&gt;
		&lt;/tr&gt;		
		&lt;tr&gt;
			&lt;td style="text-align:right;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/td&gt;
			&lt;td style="text-align:right;"&gt;&lt;strong&gt;Area:&lt;/strong&gt;&lt;/td&gt;
			&lt;td&gt;Assist&lt;/td&gt;
			&lt;td&gt;&lt;/td&gt;
		&lt;/tr&gt;		
	&lt;/tbody&gt;
&lt;/table&gt; &lt;br /&gt; 
  
    &lt;p&gt;&lt;/p&gt;
  
  
    &lt;h1&gt;Why do the numbered remarks in my data not appear on new lines on my templates?&lt;/h1&gt;
    &lt;h2&gt;Question&lt;/h2&gt;
    &lt;p&gt;When importing the data into HoleBASE  SI, 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?&lt;/p&gt;
    &lt;h2&gt;Answer&lt;/h2&gt;
    &lt;p&gt;Use the following expression in your templates instead of the location details remarks field;&lt;/p&gt;
    &lt;p&gt;
      &lt;strong&gt;substitute(substitute(substitute(substitute(substitute(substitute(substitute(substitute(substitute([LocationDetails.Remarks], &amp;#39;2. &amp;#39;, &amp;#39;\n2. &amp;#39;), &amp;#39;3. &amp;#39;, &amp;#39;\n3. &amp;#39;), &amp;#39;4. &amp;#39;, &amp;#39;\n4. &amp;#39;), &amp;#39;5. &amp;#39;, &amp;#39;\n5. &amp;#39;), &amp;#39;6. &amp;#39;, &amp;#39;\n6. &amp;#39;), &amp;#39;7. &amp;#39;, &amp;#39;\n7. &amp;#39;), &amp;#39;8. &amp;#39;, &amp;#39;\n8. &amp;#39;), &amp;#39;9. &amp;#39;, &amp;#39;\n9. &amp;#39;), &amp;#39;10. &amp;#39;, &amp;#39;\n10. &amp;#39;)&lt;/strong&gt;
    &lt;/p&gt;
    &lt;p&gt;n.b. this will only work for remarks that are numbered. Other expressions may be needed to do similar workings for other situations.&lt;/p&gt;
    &lt;h2&gt;Explanation&lt;/h2&gt;
    &lt;p&gt;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.&lt;/p&gt;
    &lt;p&gt;In the above expression, we search for any number value with a dot and a space after it (e.g. &amp;#39;1. &amp;#39;) and replace this with the same value and a line feed (e.g &amp;#39;\n1. &amp;#39;).&lt;/p&gt;
    &lt;p&gt;&lt;/p&gt;
  
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Migrated&lt;/div&gt;
</description></item></channel></rss>