Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstarkos <none@none>2009-06-15 22:23:53 +0400
committerstarkos <none@none>2009-06-15 22:23:53 +0400
commit9dc5530ab6af5a3bec03a392145824d0cd0631de (patch)
treedc02886acaa372f4c1b41a9e2fd1353ad9de78e8 /premake4.lua
parentda7732093715f1d18e0a2839281fd18116de4ae2 (diff)
Removed duplicate newlines from embedded scripts
Diffstat (limited to 'premake4.lua')
-rw-r--r--premake4.lua7
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)