<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Line Break while creating Text File from  Template</title><link>https://community.appian.com/discussions/f/general/18506/line-break-while-creating-text-file-from-template</link><description>Hi Team, 
 I have a multi text process variable with multiple string values, when i write the content to a text file using &amp;quot;Text Doc from Template&amp;quot; smart services, while passing the content to template i have used substitute method to replace &amp;quot;;&amp;quot; string</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Line Break while creating Text File from  Template</title><link>https://community.appian.com/thread/74813?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 08:31:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d43aec65-157a-4013-87e8-64d4a388ce2b</guid><dc:creator>rp_balaji</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a class="internal-link view-user-profile" href="/members/mikes0011"&gt;Mike Schmitt&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;I too had same requirement, and joinarray works really well, thanks for your inputs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Line Break while creating Text File from  Template</title><link>https://community.appian.com/thread/72890?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 04:08:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1f5dba2a-b8d3-4f17-a6cb-74182a84b6d9</guid><dc:creator>Sunil Mohan</dc:creator><description>&lt;p&gt;Thanks Mike, joinArray helps :) and i have fixed it now !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Line Break while creating Text File from  Template</title><link>https://community.appian.com/thread/72881?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 19:04:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1b66ca14-2d91-41bb-b76e-d84ecf74d121</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;if pv!fileContent is an array, then calling concat() on it will not result in &amp;quot;;&amp;quot; characters to find and replace; when viewing the value of an array elsewhere the &amp;quot;;&amp;quot; character is only added on the rendering side to help human readers, but is not actually contained in the array.&amp;nbsp; For instance, &lt;em&gt;concat({&amp;quot;a&amp;quot;, &amp;quot;b&amp;quot;, &amp;quot;c&amp;quot;})&lt;/em&gt; will output&amp;nbsp;&lt;strong&gt;&lt;em&gt;abc&lt;/em&gt;&lt;/strong&gt; instead of&amp;nbsp;&lt;em&gt;&lt;strong&gt;a; b; c&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1585163048197v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Try this instead: &lt;em&gt;&lt;strong&gt;joinArray(pv!fileContent, char(13)&amp;amp;char(10))&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Also, if it still doesn&amp;#39;t render in VI as you might expect, can you try to open the resulting file in a modern/good text editor (i.e. notepad++, etc) and report what you find there?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; if this works, then you may not have needed the &lt;em&gt;char(13)&lt;/em&gt; at all, the issue may have just been the concat.&amp;nbsp; So you could go back and try it again without the &lt;em&gt;char(13)&lt;/em&gt;&amp;nbsp;if the above works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Line Break while creating Text File from  Template</title><link>https://community.appian.com/thread/72880?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 18:14:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d04df1d2-39f6-4005-9816-21ce9cb81a8d</guid><dc:creator>Sunil Mohan</dc:creator><description>&lt;p&gt;Hi Mike, Still no Luck&amp;nbsp;&lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt; just typed the code below&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note: pv!fileContent (Multi Text)&lt;/p&gt;
&lt;p&gt;substitute(concat(pv!fileContent),&amp;quot;;&amp;quot;, char(13) &amp;amp; char(10) ) --AM finding and replacing the ; symbol with the new line&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then this is written to the text file template&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Line Break while creating Text File from  Template</title><link>https://community.appian.com/thread/72879?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 18:06:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af9b5d36-1730-4715-833f-0f9826b8e563</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Some text editors (particularly more primitive ones like vanilla windows Notepad and, possibly, VI) require char(10) and char(13) at the end of every line instead of just char(10).&amp;nbsp; I&amp;#39;d suggest you try ending each line in &amp;quot;&lt;strong&gt;&lt;em&gt;char(13) &amp;amp; char(10)&lt;/em&gt;&lt;/strong&gt;&amp;quot;, and see what happens.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Line Break while creating Text File from  Template</title><link>https://community.appian.com/thread/72878?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 17:58:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:769c70cb-1ef4-408f-b529-351dff884118</guid><dc:creator>Sunil Mohan</dc:creator><description>&lt;p&gt;Basically the file is sent to Linux server, and there am viewing it using Vi editor.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Line Break while creating Text File from  Template</title><link>https://community.appian.com/thread/72877?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 17:38:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:662e410c-70ba-458d-a450-d2b43dd090b1</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;What text editor are you trying to view the generated file in?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>