From 9dc5530ab6af5a3bec03a392145824d0cd0631de Mon Sep 17 00:00:00 2001 From: starkos Date: Mon, 15 Jun 2009 18:23:53 +0000 Subject: Removed duplicate newlines from embedded scripts --- premake4.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'premake4.lua') diff --git a/premake4.lua b/premake4.lua index fcf4d6b..26ada57 100644 --- a/premake4.lua +++ b/premake4.lua @@ -128,8 +128,11 @@ end s = s:gsub("[\t]", "") -- strip duplicate line feeds - s = s:gsub("\n+", "\n") - + local t = s + repeat + s = t + t = s:gsub("\\n\\n", "\\n") + until s == t out:write("\t\"") out:write(s) -- cgit v1.2.3