always write output with lf line endings
This commit is contained in:
parent
6e687dec3f
commit
f09d617005
|
@ -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)
|
||||
|
|
|
@ -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')
|
|
@ -0,0 +1,11 @@
|
|||
# Documentation
|
||||
|
||||
## types
|
||||
|
||||
A reference to @{types.first}
|
||||
|
||||
A `first` topic
|
||||
|
||||
## classes
|
||||
|
||||
A `second` topic
|
Loading…
Reference in New Issue