From 9e9c8f167b068fe506e633c71f2395f59bd8ce0b Mon Sep 17 00:00:00 2001 From: Mike Mason Date: Tue, 4 Dec 2007 21:55:36 +0000 Subject: 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 --- lib/fs.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/fs.lua') 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() -- cgit v1.2.3