always write output with lf line endings

This commit is contained in:
steve donovan 2016-06-20 18:50:07 +02:00
parent 6e687dec3f
commit f09d617005
3 changed files with 21 additions and 1 deletions

View File

@ -242,8 +242,11 @@ function M.check_file (f,original)
end
function M.writefile(name,text)
local ok,err = utils.writefile(name,text)
local f,err = io.open(name,"wb")
--~ local ok,err = utils.writefile(name,text)
if err then quit(err) end
f:write(text)
f:close()
end
function M.name_of (lpath)

6
run-tests.lua Normal file
View File

@ -0,0 +1,6 @@
function run_test(dir)
os.execute('cd '..dir..' && ldoc --testing . && diff -r doc cdocs')
end
run_test('tests')
run_test('tests/example')
run_test('tests/md-test')

11
tests/one.md Normal file
View File

@ -0,0 +1,11 @@
# Documentation
## types
A reference to @{types.first}
A `first` topic
## classes
A `second` topic