summaryrefslogtreecommitdiffstats
path: root/lib/fs.lua
diff options
context:
space:
mode:
authorMike Mason <ms13sp@gmail.com>2007-12-04 21:55:36 +0000
committerMike Mason <ms13sp@gmail.com>2007-12-04 21:55:36 +0000
commit9e9c8f167b068fe506e633c71f2395f59bd8ce0b (patch)
tree0623a1e0107ac4cd45f3e9eb242fd47179a808c5 /lib/fs.lua
parente1629e16cade9decf1f0045cb51d26198597848e (diff)
downloadacf-core-9e9c8f167b068fe506e633c71f2395f59bd8ce0b.tar.bz2
acf-core-9e9c8f167b068fe506e633c71f2395f59bd8ce0b.tar.xz
Added timezone information to date.lua. Added fs.file_write to be able to add newlines at the end of the file(most strings don't have them) and also added a function to format.lua
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@408 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lib/fs.lua')
-rw-r--r--lib/fs.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/fs.lua b/lib/fs.lua
index abcb03d..04990d7 100644
--- a/lib/fs.lua
+++ b/lib/fs.lua
@@ -56,6 +56,8 @@ end
function write_file ( path, str )
local file = io.open(path, "w")
+ --append a newline char
+ str = str .. "\n"
if ( file ) then
file:write(str)
file:close()