<?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[All lines in a file have collapsed into one line.]]></title><description><![CDATA[<p dir="auto">My debug info:</p>
<p dir="auto">Notepad++ v8.6.5   (64-bit)<br />
Build time : Mar 29 2024 - 17:04:43<br />
Path : C:\Program Files\Notepad++\notepad++.exe<br />
Command Line : “E:\SteamLibrary\steamapps\common\Wartales\Extracted\Impatience overhaul\Output\data.cdb”<br />
Admin mode : OFF<br />
Local Conf mode : OFF<br />
Cloud Config : OFF<br />
Periodic Backup : ON<br />
OS Name : Windows 10 Home (64-bit<br />
OS Version : 22H2<br />
OS Build : 19045.6332<br />
Current ANSI codepage : 1252<br />
Plugins :<br />
ComparePlugin (2.0.2)<br />
JSMinNPP (1.2006)<br />
mimeTools (3.1)<br />
NppConverter (4.6)<br />
NppExport (0.4)</p>
<p dir="auto">I don’t know if this qualifies as a search/replace question so I didn’t use that template.</p>
<p dir="auto">A mod I’m using for a game is out of date so I thought I’d try to update it. I thought the easiest way to do this would be to compare the mod’s data file to the game’s data file but when I opened the mod’s data file I saw that all of the code was smushed into one line.</p>
<p dir="auto">In the game’s data file the code looks like this:</p>
<pre><code>{
	"sheets": [
		{
			"name": "icon",
			"columns": [
				{
					"typeStr": "14",
					"name": "icon",
					"opt": true
				},
				{
					"typeStr": "0",
					"name": "id"
				},
				{
					"typeStr": "1",
					"name": "text",
					"opt": true,
					"kind": "localizable"
				},
				{
					"typeStr": "1",
					"name": "desc",
					"opt": true,
					"kind": "localizable"
				},
				{
					"typeStr": "2",
					"name": "iconeDone",
					"editor": {
						"copyPasteImmutable": true
					}
				}
			],
</code></pre>
<p dir="auto">In the mod’s data file the code looks like this:</p>
<pre><code>{"sheets": [{"name": "icon", "columns": [{"typeStr": "14", "name": "icon", "opt": true}, {"typeStr": "0", "name": "id"}, {"typeStr": "1", "name": "text", "opt": true, "kind": "localizable"}, {"typeStr": "1", "name": "desc", "opt": true, "kind": "localizable"}, {"typeStr": "2", "name": "iconeDone", "editor": {"copyPasteImmutable": true}}],
</code></pre>
<p dir="auto">I know how to manually change the way the code looks on a small scale but the Game’s data file has 289,028 lines and having to manually change the mod’s data file to match that would take way too long.</p>
<p dir="auto">I’ve tried adding new lines by using the replace function by adding new lines after the brackets and curly brackets but that only increased the total amount of lines to around 90,000.</p>
<p dir="auto"><img src="/assets/uploads/files/1758895474375-wartales-replace-function-example.png" alt="Wartales replace function example.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto">Is there a way of changing the way the code looks in the entire file so it matches the game’s data file?</p>
<p dir="auto">If it’s allowed I could possibly add the modded file if it helps.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/27153/all-lines-in-a-file-have-collapsed-into-one-line</link><generator>RSS for Node</generator><lastBuildDate>Sun, 11 Oct 2026 03:09:15 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/27153.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 26 Sep 2025 14:13:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to All lines in a file have collapsed into one line. on Sat, 27 Sep 2025 22:12:10 GMT]]></title><description><![CDATA[<p dir="auto">JsonTools maintainer here.</p>
<p dir="auto">The <a href="https://github.com/molsonkiko/JsonToolsNppPlugin/blob/main/docs/README.md#sort_keys" rel="nofollow ugc"><code>sort_keys</code> setting</a> in JsonTools should be set to <code>True</code> when pretty-printing JSON for comparison.</p>
<p dir="auto">This is because the order of keys in a JSON object doesn’t matter: <code>{"foo": 1, "bar": 2}</code> and <code>{"bar": 2, "foo": 1}</code> are the same, but a general-purpose diff tool like ComparePlus doesn’t know that.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/103340</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/103340</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Sat, 27 Sep 2025 22:12:10 GMT</pubDate></item><item><title><![CDATA[Reply to All lines in a file have collapsed into one line. on Fri, 26 Sep 2025 22:05:15 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></p>
<p dir="auto">Alright, I’ll try ComparePlus instead. I was already planning to let my computer run the comparison overnight so hopefully ComparePlus is faster.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/103335</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/103335</guid><dc:creator><![CDATA[Joep Kregting]]></dc:creator><pubDate>Fri, 26 Sep 2025 22:05:15 GMT</pubDate></item><item><title><![CDATA[Reply to All lines in a file have collapsed into one line. on Fri, 26 Sep 2025 21:43:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joep-kregting" aria-label="Profile: Joep-Kregting">@<bdi>Joep-Kregting</bdi></a> said in <a href="/post/103332">All lines in a file have collapsed into one line.</a>:</p>
<blockquote>
<p dir="auto">The only problem I have now is that it’s taking a very long time to compare the two data files.</p>
</blockquote>
<p dir="auto">From your Debug Info that you shared earlier, it appears you are still using the old ComparePlugin.  I would recommend uninstalling that and installing ComparePlus instead – it’s the successor to the original, and is actively maintained.  I cannot guarantee it will be more efficient at the comparison, but it wouldn’t hurt.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/103333</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/103333</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 26 Sep 2025 21:43:31 GMT</pubDate></item><item><title><![CDATA[Reply to All lines in a file have collapsed into one line. on Fri, 26 Sep 2025 20:53:07 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></p>
<p dir="auto">I’ve already installed a few other plugins, I don’t mind installing more.</p>
<p dir="auto">I used the pretty-print option and it looks like it fixed the file. There’s still differences in the total amount of lines of code both files have but that’s most likely because the game’s data file has new content in it.</p>
<p dir="auto">The only problem I have now is that it’s taking a very long time to compare the two data files.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/103332</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/103332</guid><dc:creator><![CDATA[Joep Kregting]]></dc:creator><pubDate>Fri, 26 Sep 2025 20:53:07 GMT</pubDate></item><item><title><![CDATA[Reply to All lines in a file have collapsed into one line. on Fri, 26 Sep 2025 15:28:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joep-kregting" aria-label="Profile: Joep-Kregting">@<bdi>Joep-Kregting</bdi></a> ,</p>
<p dir="auto">With <em>just</em> Notepad++, there isn’t a great way. If you are willing to install a plugin, then I would recommend <a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-olson" aria-label="Profile: Mark-Olson">@<bdi>Mark-Olson</bdi></a>’s JsonTools plugin (to install the plugin, use <strong>Plugins &gt; Plugin Admin</strong>, checkmark <code>JSON Tools</code>, and click <strong>Install</strong>).</p>
<p dir="auto">Once it’s installed, you can open your mod’s data file (the one that’s flat), and then use <strong>Plugins &gt; JsonTools &gt; Pretty-print current JSON file</strong> to make it more like the original.</p>
<p dir="auto">(I cannot guarantee that the plugin’s pretty-print routine will exactly follow the same rules as the original game file.  But if you want to look at them both with the same formatting rules, you can use <strong>Pretty-print</strong> on the original file, as well, which will make them both have the same consistent formatting.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/103314</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/103314</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 26 Sep 2025 15:28:03 GMT</pubDate></item></channel></rss>