<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Ctrl-J (join lines) replaces LF with space]]></title><description><![CDATA[<p dir="auto">I have a private key in pem format that is split into multiple lines by line feeds.  I wanted to concatenate those lines into a single line.</p>
<p dir="auto">Pasted the key text into a new tab, selected the lines and issued a Ctrl-J.  This resulted in a single line, but each LF was replaced by a space.</p>
<p dir="auto">This is in v8.9.6.4 (64-bit) on Win 11.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/27589/ctrl-j-join-lines-replaces-lf-with-space</link><generator>RSS for Node</generator><lastBuildDate>Thu, 02 Jul 2026 12:20:56 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/27589.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Jul 2026 01:39:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ctrl-J (join lines) replaces LF with space on Wed, 01 Jul 2026 16:33:07 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/dougk.az" aria-label="Profile: dougk.az">@<bdi>dougk.az</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Oh, yes, <strong>Peter</strong>, you’re perfectly <strong>right</strong> ! But I must be a little <strong>tired</strong> from this <strong>heat wave</strong>. Since <strong><code>June 22</code></strong>, in the room where my desk is, even with a <strong>fan</strong>, the temperature has usually been between <strong><code>29 °C</code></strong> and <strong><code>30.5 °C</code></strong>. It’s <strong>awful</strong> !</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
<p dir="auto">Oh ! Now, I also realized that <a class="plugin-mentions-user plugin-mentions-a" href="/user/dougk.az" aria-label="Profile: dougk.az">@<bdi>dougk.az</bdi></a> <strong>never</strong> spoke about the <strong>form feed</strong> ( <strong><code>FF</code></strong> ) characters, of code <strong><code>\x0C</code></strong> but spoke about the <strong>line feed</strong> ( <strong><code>LF</code></strong> ) chars, of code <strong><code>\x0A</code></strong></p>
<p dir="auto">As I said above : really <strong>tired</strong> by heat !!!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105809</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105809</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 01 Jul 2026 16:33:07 GMT</pubDate></item><item><title><![CDATA[Reply to Ctrl-J (join lines) replaces LF with space on Wed, 01 Jul 2026 15:40:23 GMT]]></title><description><![CDATA[<p dir="auto">RTFM is always the last option. :)  Thanks for pointing that out and thanks to everyone that replied to this posting.</p>
<p dir="auto">Doug</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105808</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105808</guid><dc:creator><![CDATA[DougK.AZ]]></dc:creator><pubDate>Wed, 01 Jul 2026 15:40:23 GMT</pubDate></item><item><title><![CDATA[Reply to Ctrl-J (join lines) replaces LF with space on Wed, 01 Jul 2026 15:35:41 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dougk.az" aria-label="Profile: DougK.AZ">@<bdi>DougK.AZ</bdi></a> <a href="/post/105805">said</a>:</p>
<p dir="auto">My purpose with this posting was just to let the developers know that Ctrl-J is not working as I expected.</p>
</blockquote>
<p dir="auto">FYI, this behavior is as it is documented in the User Manual at <a href="https://npp-user-manual.org/docs/editing/" rel="nofollow ugc">https://npp-user-manual.org/docs/editing/</a> :</p>
<p dir="auto"><img src="/assets/uploads/files/1782920019752-046c19c2-e5a8-4a81-b719-87aa6944d9ba-image.jpeg" alt="046c19c2-e5a8-4a81-b719-87aa6944d9ba-image.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">…</p>
<p dir="auto">And regarding <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a>’s regex: I am surprised he didn’t suggest the simpler FIND of <code>\R</code> – the capital version of the escape sequence will match <code>\r\n</code> or <code>\r</code> or <code>\n</code>, so it handles any of the normal line endings, without having to add in the <code>?</code>, so that would have been a simpler regular-expression FIND WHAT value to use.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105807</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105807</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 01 Jul 2026 15:35:41 GMT</pubDate></item><item><title><![CDATA[Reply to Ctrl-J (join lines) replaces LF with space on Wed, 01 Jul 2026 15:26:30 GMT]]></title><description><![CDATA[<p dir="auto">No worries.  I had no trouble using search/replace to join the lines.  My purpose with this posting was just to let the developers know that Ctrl-J is not working as I expected.</p>
<p dir="auto">Doing a bit more research it seems that Ctrl-J works similarly to Shift-J in gVim.  What I was expecting is the 2nd option below, which is not the default.</p>
<p dir="auto">In gVim:<br />
<strong>J</strong>: Joins the current line and the next line, inserting a space.<br />
<strong>gJ</strong>: Joins the lines without adding any spaces or removing existing whitespace.</p>
<p dir="auto">So this more or less explains why the space was inserted.</p>
<p dir="auto">Doug</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105805</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105805</guid><dc:creator><![CDATA[DougK.AZ]]></dc:creator><pubDate>Wed, 01 Jul 2026 15:26:30 GMT</pubDate></item><item><title><![CDATA[Reply to Ctrl-J (join lines) replaces LF with space on Wed, 01 Jul 2026 16:33:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi; <a class="plugin-mentions-user plugin-mentions-a" href="/user/dougk.az" aria-label="Profile: dougk.az">@<bdi>dougk.az</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">First of all, I need to <strong>apologize</strong> :</p>
<p dir="auto">Firstly, my <em>search</em> regex was <strong>erroneous</strong>. My bad ! I should have written :</p>
<p dir="auto">FIND <strong><code>\r?\n</code></strong></p>
<p dir="auto">REPLACE <strong><code>Leave EMPTY</code></strong></p>
<hr />
<p dir="auto">Secondly, in the <strong>last</strong> sentence of my <strong>previous</strong> post, I did a <strong>typo</strong> because I wanted to mean :</p>
<blockquote>
<p dir="auto">To verify that all your lines are <strong>just</strong> concatenated, <strong>without</strong> any char in between, simply use the <strong><code>¶</code></strong> icon of the Toolbar. All the <strong><code>FF</code></strong> characters are <strong>preserved</strong> !</p>
</blockquote>
<hr />
<p dir="auto">Note that the regex syntax <strong><code>\r?\n</code></strong> search, <strong>either</strong>, for :</p>
<ul>
<li>
<p dir="auto">The <strong>two</strong> consecutive chars <strong><code>\r</code></strong> and <strong><code>\n</code></strong></p>
</li>
<li>
<p dir="auto">The character <strong><code>\n</code></strong> <strong>only</strong></p>
</li>
</ul>
<p dir="auto">So, this <strong>new</strong> formulation, in <strong>regex</strong> mode, should work either !</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105803</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105803</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 01 Jul 2026 16:33:26 GMT</pubDate></item><item><title><![CDATA[Reply to Ctrl-J (join lines) replaces LF with space on Wed, 01 Jul 2026 14:05:49 GMT]]></title><description><![CDATA[<p dir="auto">Thanks guy for the hint.  There are no CR’s in this file, only LF’s, so an “extended” search on <strong>\n</strong> replacing with nothing did the trick!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105800</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105800</guid><dc:creator><![CDATA[DougK.AZ]]></dc:creator><pubDate>Wed, 01 Jul 2026 14:05:49 GMT</pubDate></item><item><title><![CDATA[Reply to Ctrl-J (join lines) replaces LF with space on Wed, 01 Jul 2026 09:22:34 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/dougk.az" aria-label="Profile: dougk.az">@<bdi>dougk.az</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">I suppose that using this simple <strong>regex</strong> replacement, below, should work !</p>
<ul>
<li>
<p dir="auto">Open your text in <strong>N++</strong></p>
</li>
<li>
<p dir="auto">Move back at the <strong>very beginning</strong> of your file</p>
</li>
<li>
<p dir="auto">Open the <strong>Replace</strong> dialog ( <strong><code>Ctrl + H</code></strong> )</p>
</li>
<li>
<p dir="auto"><strong>Uncheck</strong> all <strong>box</strong> options</p>
</li>
<li>
<p dir="auto">FIND <strong><code>\r\n?</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>Leave EMPTY</code></strong></p>
</li>
<li>
<p dir="auto">Check the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search <strong>mode</strong></p>
</li>
<li>
<p dir="auto">Click, <strong>once</strong>, on the <strong><code>Replace All</code></strong> button</p>
</li>
</ul>
<p dir="auto">Here you are !</p>
<hr />
<p dir="auto">To verify that all your lines are <strong>just</strong> concatenated, <strong>without</strong> any char in between, simply use the <strong><code>¶</code></strong> icon of the <strong>Toolbar</strong>. All the <strong><code>LF</code></strong> characters are <strong>preserved</strong> !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105799</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105799</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 01 Jul 2026 09:22:34 GMT</pubDate></item></channel></rss>