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-01-19 19:56:40 +0300
committerstarkos <none@none>2009-01-19 19:56:40 +0300
commit04dc3f7df74c41e8653bd8fb8427ff2faa0127c0 (patch)
treebf2733a94a501c7dfde0a9357d8f0ac54c6e70f2 /premake4.lua
parent1f5a3056acfb3834c2b4eb1754677745f2e9615c (diff)
solution() and project() now only set the active object when called with a name; remains unchanged otherwise
Diffstat (limited to 'premake4.lua')
-rw-r--r--premake4.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/premake4.lua b/premake4.lua
index 663f235..1bab1ca 100644
--- a/premake4.lua
+++ b/premake4.lua
@@ -110,10 +110,7 @@ end
-- escape backslashes
s = s:gsub("\\", "\\\\")
-
- -- strip duplicate line feeds
- s = s:gsub("\n+", "\n")
-
+
-- escape line feeds
s = s:gsub("\n", "\\n")
@@ -130,6 +127,10 @@ end
-- strip tabs
s = s:gsub("[\t]", "")
+ -- strip duplicate line feeds
+ s = s:gsub("\n+", "\n")
+
+
out:write("\t\"")
out:write(s)
out:write("\",\n")