<?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[Why is a &#x5C;n appended at the end of my .txt file]]></title><description><![CDATA[<p dir="auto">Why is a \n appended at the end of my .txt file</p>
<p dir="auto">It was not doing that before.</p>
<p dir="auto">Notepad++ v8.7.5 (64bit)</p>
<p dir="auto">Notepad++ v8.7.5   (64-bit)<br />
Build time : Dec 21 2024 - 05:13:03<br />
Path : C:\Program Files\Notepad++\notepad++.exe<br />
Command Line : -multiInst -nosession -openSession “f:\Users\xyz\Documents\xyz\NPP Sessions\xyz.ses”<br />
Admin mode : OFF<br />
Local Conf mode : OFF<br />
Cloud Config : OFF<br />
Periodic Backup : OFF<br />
Placeholders : OFF<br />
DirectWrite : ON<br />
Multi-instance Mode : multiInst<br />
File Status Auto-Detection : cdEnabledOld (for all opened files/tabs) + cdAutoUpdate<br />
Dark Mode : ON<br />
OS Name : Windows 10 Pro (64-bit)<br />
OS Version : 22H2<br />
OS Build : 19045.5371<br />
Current ANSI codepage : 1252<br />
Plugins :<br />
BracketsCheck (1.2.2)<br />
Comment Wrap (1.0.0.7)<br />
ComparePlus (1.2)<br />
EnhanceAnyLexer (1.4)<br />
HTMLTag (1.5.1)<br />
LocationNavigate (0.4.8.1)<br />
LuaScript (0.12)<br />
MarkdownViewerPlusPlus (0.8.2)<br />
Merge files in one (1.2)<br />
mimeTools (3.1)<br />
NavigateTo (2.6.4)<br />
NppConverter (4.6)<br />
NppEditorConfig (0.4)<br />
NppExport (0.4)<br />
NPPJSONViewer (2.1)<br />
NppTextViz (0.4.2)<br />
NppToolBucket (1.10.6622.41516)<br />
NppXmlTreeviewPlugin (2)<br />
PreviewHTML (1.3.3.2)<br />
Python Indent (1.0.0.5)<br />
PythonScript (2)<br />
RegexTrainer (1.2)<br />
SessionMgr (1.4.4)<br />
XBrackets (1.3.1)<br />
zoomdisabler_x64 (1.2)<br />
_CustomizeToolbar (5.3)</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/26625/why-is-a-n-appended-at-the-end-of-my-txt-file</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 13:38:33 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/26625.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 10 Feb 2025 23:43:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Why is a &#x5C;n appended at the end of my .txt file on Tue, 11 Feb 2025 11:05:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robert-leduc" aria-label="Profile: Robert-Leduc">@<bdi>Robert-Leduc</bdi></a></p>
<p dir="auto">Suggestion: If you don’t know what a plugin is doing, perhaps uninstall it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99797</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99797</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 11 Feb 2025 11:05:02 GMT</pubDate></item><item><title><![CDATA[Reply to Why is a &#x5C;n appended at the end of my .txt file on Tue, 11 Feb 2025 02:38:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> You got it right!  Thanks<br />
It is the .editorconfig doing that.<br />
I’ll correct it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99789</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99789</guid><dc:creator><![CDATA[Robert Leduc]]></dc:creator><pubDate>Tue, 11 Feb 2025 02:38:12 GMT</pubDate></item><item><title><![CDATA[Reply to Why is a &#x5C;n appended at the end of my .txt file on Tue, 11 Feb 2025 00:01:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robert-leduc" aria-label="Profile: Robert-Leduc">@<bdi>Robert-Leduc</bdi></a>,</p>
<blockquote>
<p dir="auto">Why is a \n appended at the end of my .txt file</p>
</blockquote>
<p dir="auto">It depends on whether you mean “why is it just <code>LF</code> when I am set to windows <code>CR LF</code>?” or whether you mean “why is there a newline sequence appropriate to my settings (either <code>\n</code> for linux <code>LF</code>, or <code>\r\n</code> for windows <code>CR LF</code>) at the end of my file, when I didn’t actually type an ENTER at the end of my file?”  Because one is the question that <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a> answered, the second is my guess — oh, while answering this, I see you’ve continued the conversation, and I believe my guess is probably correct.</p>
<blockquote>
<p dir="auto">NppEditorConfig (0.4)</p>
</blockquote>
<p dir="auto">You have the NppEditorConfig plugin.  For the active file, does <strong>Plugins &gt; Editor Config &gt; Show EditorConfig settings for this file</strong> show <code>insert_final_newline = true</code> ? if so, then your <code>.editorconfig</code> file (either in the active directory or one of its parents) sets it so that the plugin automatically adds the newline</p>
<p dir="auto"><img src="/assets/uploads/files/1739231493218-33ce9d4d-094c-42ba-9517-bd7daf73e9ed-image.png" alt="33ce9d4d-094c-42ba-9517-bd7daf73e9ed-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1739231429869-1abf9c63-1e57-43cb-a50a-0691ee69f4a4-image.png" alt="1abf9c63-1e57-43cb-a50a-0691ee69f4a4-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">So, assuming my guess is correct, it looks like you probably told the NppEditorConfig plugin to add newlines, then blamed it on Notepad++.  (<em>edit</em>: or, alternatively, the repo that you have a checkout in which you are editing a file in had a .editorconfig that you didn’t know about, so your working copy started correctly honoring that repo’s settings once you installed the NppEditorConfig plugin – so maybe it was without your knowledge, but still because you have the plugin)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99786</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99786</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 11 Feb 2025 00:01:01 GMT</pubDate></item><item><title><![CDATA[Reply to Why is a &#x5C;n appended at the end of my .txt file on Mon, 10 Feb 2025 23:54:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robert-leduc" aria-label="Profile: Robert-Leduc">@<bdi>Robert-Leduc</bdi></a></p>
<p dir="auto">You said appended, so ONLY the (second to) last line has this?</p>
<p dir="auto">Can you think of any change you have made recently to either your file itself, or configuration changes in Notepad++.</p>
<p dir="auto">How about opening a new file and type a single line and press enter to get the EOL type it thinks should be there. Post back what you saw.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99785</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99785</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Mon, 10 Feb 2025 23:54:10 GMT</pubDate></item><item><title><![CDATA[Reply to Why is a &#x5C;n appended at the end of my .txt file on Mon, 10 Feb 2025 23:51:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a></p>
<p dir="auto">I am on Windows, never Linux.  So not touched there.</p>
<p dir="auto">I can fix it, but as soon as I save it, it returns.</p>
<p dir="auto">Notepad, does not do that!!<br />
And np++ did not before</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99784</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99784</guid><dc:creator><![CDATA[Robert Leduc]]></dc:creator><pubDate>Mon, 10 Feb 2025 23:51:08 GMT</pubDate></item><item><title><![CDATA[Reply to Why is a &#x5C;n appended at the end of my .txt file on Mon, 10 Feb 2025 23:47:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robert-leduc" aria-label="Profile: Robert-Leduc">@<bdi>Robert-Leduc</bdi></a> said in <a href="/post/99782">Why is a \n appended at the end of my .txt file</a>:</p>
<blockquote>
<p dir="auto">Why is a \n appended at the end of my .txt file</p>
</blockquote>
<p dir="auto">\n is used by a Linux (Unix) system. Has the file been altered by any Linux system in the interim?</p>
<p dir="auto">Once you have it opened in Notepad++ you can fix this by using the Edit, EOL Conversion and select Windows (CR/LF). If that is dimmed, then select one of the others, then repeat and select the Windows one again. That will fix it.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99783</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99783</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Mon, 10 Feb 2025 23:47:54 GMT</pubDate></item></channel></rss>