<?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 replace lf with space but not cr in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/replace-lf-with-space-but-not-cr/m-p/2212155#M9888</link>
    <description>&lt;P&gt;Is there any way in Talend to replace a lf (linefeed) character with a space but not affect cr (Carriage return)?&lt;BR /&gt;I've tried to modify the input field in my tmap with replacing \n with a space with no change. I've also tried the tReplace searching for \n to replace with a string with no change.&lt;BR /&gt;&lt;BR /&gt;the input text would be something like with | as a separator&lt;BR /&gt;field1 | field2| field3 some textLF&lt;BR /&gt;more textLF&lt;BR /&gt;more text|field4 | field5 CR&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;which I would like to see in the format of&lt;BR /&gt;field1 | field2| field3 some text&amp;nbsp;more text more text|field4 | field5 CR&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:52:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T04:52:03Z</dc:date>
    <item>
      <title>replace lf with space but not cr</title>
      <link>https://community.qlik.com/t5/Talend-Studio/replace-lf-with-space-but-not-cr/m-p/2212155#M9888</link>
      <description>&lt;P&gt;Is there any way in Talend to replace a lf (linefeed) character with a space but not affect cr (Carriage return)?&lt;BR /&gt;I've tried to modify the input field in my tmap with replacing \n with a space with no change. I've also tried the tReplace searching for \n to replace with a string with no change.&lt;BR /&gt;&lt;BR /&gt;the input text would be something like with | as a separator&lt;BR /&gt;field1 | field2| field3 some textLF&lt;BR /&gt;more textLF&lt;BR /&gt;more text|field4 | field5 CR&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;which I would like to see in the format of&lt;BR /&gt;field1 | field2| field3 some text&amp;nbsp;more text more text|field4 | field5 CR&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/replace-lf-with-space-but-not-cr/m-p/2212155#M9888</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: replace lf with space but not cr</title>
      <link>https://community.qlik.com/t5/Talend-Studio/replace-lf-with-space-but-not-cr/m-p/2212156#M9889</link>
      <description>Use tFileInputFullRow to read the input file with \r for the row separator and line.replaceAll("\\n", " ") to replace \n all by spaces.&lt;BR /&gt;It should work (maybe \n istead of \\n).</description>
      <pubDate>Sun, 25 Aug 2019 13:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/replace-lf-with-space-but-not-cr/m-p/2212156#M9889</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-08-25T13:41:45Z</dc:date>
    </item>
  </channel>
</rss>

