style: Cleanup whitespace
This commit is contained in:
parent
c780179897
commit
59b728ca20
|
@ -4,7 +4,7 @@ module 'global'
|
|||
|
||||
---
|
||||
-- Issues an error when its argument `v` is false.
|
||||
-- That is, nil or false. otherwise, returns all its arguments.
|
||||
-- That is, nil or false. otherwise, returns all its arguments.
|
||||
-- `message` is an error when absent, it defaults to "assertion failed!"
|
||||
function assert(v , message) end
|
||||
|
||||
|
@ -71,7 +71,7 @@ function ipairs(t) end
|
|||
---
|
||||
-- Loads a chunk.
|
||||
-- If `ld` is a string, the chunk is this string.
|
||||
-- If `ld` is a function, load calls it repeatedly to get the chunk pieces. Each call to `ld` must return a
|
||||
-- If `ld` is a function, load calls it repeatedly to get the chunk pieces. Each call to `ld` must return a
|
||||
-- string that concatenates with previous results. A return of an empty string, nil, or no value
|
||||
-- signals the end of the chunk.
|
||||
-- If there are no syntactic errors, returns the compiled chunk as a function;
|
||||
|
|
|
@ -177,7 +177,7 @@ function string.upper(s) end
|
|||
function string.pack (fmt, v1, v2, ···) end
|
||||
|
||||
---
|
||||
-- (5.3) Returns the size of a string resulting from string.pack with the given format.
|
||||
-- (5.3) Returns the size of a string resulting from string.pack with the given format.
|
||||
-- The format string cannot have the variable-length options 's' or 'z' (see 6.4.2).
|
||||
function string.packsize (fmt) end
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@ function html.generate_output(ldoc, args, project)
|
|||
end
|
||||
return base..name..'.html'
|
||||
end
|
||||
|
||||
|
||||
function ldoc.include_file (file)
|
||||
local text,e = utils.readfile(file)
|
||||
if not text then quit("unable to include "..file)
|
||||
|
@ -212,7 +212,7 @@ function ldoc.source_ref (fun)
|
|||
function ldoc.is_list (t)
|
||||
return type(t) == 'table' and t.append
|
||||
end
|
||||
|
||||
|
||||
function ldoc.strip_header (s)
|
||||
if not s then return s end
|
||||
return s:gsub('^%s*#+%s+','')
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
return [[
|
||||
body {
|
||||
body {
|
||||
color: #47555c;
|
||||
font-size: 16px;
|
||||
font-family: "Open Sans", sans-serif;
|
||||
|
|
|
@ -252,7 +252,7 @@ local function tokenize_html(html)
|
|||
end
|
||||
if not stop then
|
||||
-- error("Could not match html tag " .. html:sub(start,start+30))
|
||||
table.insert(tokens, {type="text", text=html:sub(start, start)})
|
||||
table.insert(tokens, {type="text", text=html:sub(start, start)})
|
||||
pos = start + 1
|
||||
else
|
||||
table.insert(tokens, {type="tag", text=html:sub(start, stop)})
|
||||
|
|
Loading…
Reference in New Issue