<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Alfresco.util.Ajax.request, text content and line breaks in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-util-ajax-request-text-content-and-line-breaks/m-p/46266#M18471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;When you say&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;....&amp;nbsp;process lines .......&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;Do you process more that one?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt; If yes then you got line breaks but you're spliting text on them with&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;.split("\r\n")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt; After that code you are converting the response to an array&amp;nbsp;of lines without line breaks&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Mikel&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2018 07:32:23 GMT</pubDate>
    <dc:creator>mikel_asla</dc:creator>
    <dc:date>2018-05-15T07:32:23Z</dc:date>
    <item>
      <title>Alfresco.util.Ajax.request, text content and line breaks</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-util-ajax-request-text-content-and-line-breaks/m-p/46265#M18470</link>
      <description>Hi,I want to read&amp;nbsp;text file content line by line from a YUI widget using an Ajax request.Everything works fine except that line breaks are removed from server response. Code is added below.Any advice to preserve line breaks in the text response ?&amp;lt;code&amp;gt;Alfresco.util.Ajax.request({&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;url: A</description>
      <pubDate>Mon, 14 May 2018 21:08:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-util-ajax-request-text-content-and-line-breaks/m-p/46265#M18470</guid>
      <dc:creator>vincent-kali</dc:creator>
      <dc:date>2018-05-14T21:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco.util.Ajax.request, text content and line breaks</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-util-ajax-request-text-content-and-line-breaks/m-p/46266#M18471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;When you say&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;....&amp;nbsp;process lines .......&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;Do you process more that one?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt; If yes then you got line breaks but you're spliting text on them with&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;.split("\r\n")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt; After that code you are converting the response to an array&amp;nbsp;of lines without line breaks&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Mikel&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 07:32:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-util-ajax-request-text-content-and-line-breaks/m-p/46266#M18471</guid>
      <dc:creator>mikel_asla</dc:creator>
      <dc:date>2018-05-15T07:32:23Z</dc:date>
    </item>
  </channel>
</rss>

