mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 06:34:59 +00:00
Removed double line breaks in combined scripts
This commit is contained in:
@@ -110,7 +110,7 @@ module Scripts
|
|||||||
files.sort!
|
files.sort!
|
||||||
files.each do |f|
|
files.each do |f|
|
||||||
section_name = filename_to_title(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)]
|
scripts << [rand(999_999), section_name, Zlib::Deflate.deflate(content)]
|
||||||
end
|
end
|
||||||
# Check each subfolder for scripts to aggregate
|
# Check each subfolder for scripts to aggregate
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ module Scripts
|
|||||||
files.sort!
|
files.sort!
|
||||||
files.each do |f|
|
files.each do |f|
|
||||||
section_name = filename_to_title(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)]
|
scripts << [rand(999_999), section_name, Zlib::Deflate.deflate(content)]
|
||||||
end
|
end
|
||||||
# Check each subfolder for scripts to aggregate
|
# Check each subfolder for scripts to aggregate
|
||||||
|
|||||||
Reference in New Issue
Block a user