Removed double line breaks in combined scripts

This commit is contained in:
Maruno17
2020-09-07 21:52:49 +01:00
parent 2185cc7a5c
commit 7221e88be4
2 changed files with 2 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ module Scripts
files.sort!
files.each do |f|
section_name = filename_to_title(f)
content = File.open(path + "/" + f, "rb") { |f2| f2.read }.gsub(/\n/, "\r\n")
content = File.open(path + "/" + f, "rb") { |f2| f2.read }#.gsub(/\n/, "\r\n")
scripts << [rand(999_999), section_name, Zlib::Deflate.deflate(content)]
end
# Check each subfolder for scripts to aggregate

View File

@@ -110,7 +110,7 @@ module Scripts
files.sort!
files.each do |f|
section_name = filename_to_title(f)
content = File.open(path + "/" + f, "rb") { |f2| f2.read }.gsub(/\n/, "\r\n")
content = File.open(path + "/" + f, "rb") { |f2| f2.read }#.gsub(/\n/, "\r\n")
scripts << [rand(999_999), section_name, Zlib::Deflate.deflate(content)]
end
# Check each subfolder for scripts to aggregate