summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpportunity <[email protected]>2020-01-20 20:26:19 +0800
committerOpportunity <[email protected]>2020-01-20 22:21:47 +0800
commit5c8f634cfab5d0d667a6d1127451c585cdd342be (patch)
tree57287cbbc441ce860dc51bb97723e259298e6aec
parent929d2d1e48456e45118754ded06dd0dd420415f1 (diff)
fix io.cat
-rw-r--r--xmake/core/base/io.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/io.lua b/xmake/core/base/io.lua
index 103288288..0770436eb 100644
--- a/xmake/core/base/io.lua
+++ b/xmake/core/base/io.lua
@@ -673,7 +673,7 @@ function io.cat(filepath, linecount, opt)
for line in file:lines(opt) do
-- show line
- io.print(line)
+ io.write(line, "\n")
-- end?
if linecount and count >= linecount then