diff options
author | starkos <none@none> | 2009-06-15 22:23:53 +0400 |
---|---|---|
committer | starkos <none@none> | 2009-06-15 22:23:53 +0400 |
commit | 9dc5530ab6af5a3bec03a392145824d0cd0631de (patch) | |
tree | dc02886acaa372f4c1b41a9e2fd1353ad9de78e8 /premake4.lua | |
parent | da7732093715f1d18e0a2839281fd18116de4ae2 (diff) |
Removed duplicate newlines from embedded scripts
Diffstat (limited to 'premake4.lua')
-rw-r--r-- | premake4.lua | 7 |
1 files changed, 5 insertions, 2 deletions
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) |