Codebase list lua-ldoc / f9a778e
final tweaks to docs, pretty last-line problem steve donovan 12 years ago
2 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
216216 -- @field viscosity
217217 -- @table stdvars
218218
219 @\{ref} is very useful for referencing your API from code samples and readme text.
219 @\{ref} is very useful for referencing your API from code samples and readme text. (I've had to throw in a spurious backspace to stop expansion in this example.)
220220
221221 The link text can be changed from the default by the extended syntax @\{ref|text}.
222222
260260 -- @return standard time since epoch
261261 function File:mtime()
262262 ...
263 end
263264
264265 (In an ideal world, we would use the word 'class' instead of 'type', but this would conflict with the LuaDoc usage.)
265266
5454 end
5555 t,val = tok()
5656 end
57 table.remove(res)
57 local last = res[#res]
58 if last:match '\n$' then
59 res[#res] = last:gsub('\n+','')
60 end
5861 return res:join ()
5962 end
6063