| OLD | NEW |
| 1 function tostr(t) | 1 function tostr(t) |
| 2 local str = "" | 2 local str = "" |
| 3 for k, v in next, t do | 3 for k, v in next, t do |
| 4 if #str > 0 then | 4 if #str > 0 then |
| 5 str = str .. ", " | 5 str = str .. ", " |
| 6 end | 6 end |
| 7 if type(k) == "number" then | 7 if type(k) == "number" then |
| 8 str = str .. "[" .. k .. "] = " | 8 str = str .. "[" .. k .. "] = " |
| 9 else | 9 else |
| 10 str = str .. tostring(k) .. " = " | 10 str = str .. tostring(k) .. " = " |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 else | 88 else |
| 89 local n = count_hypens(s) | 89 local n = count_hypens(s) |
| 90 block[#block + 1] = { | 90 block[#block + 1] = { |
| 91 indent = n, | 91 indent = n, |
| 92 text = trim_ws(s:sub(n + 1, -1)) | 92 text = trim_ws(s:sub(n + 1, -1)) |
| 93 } | 93 } |
| 94 end | 94 end |
| 95 end | 95 end |
| 96 end | 96 end |
| 97 end | 97 end |
| 98 -- pretty_print_slides(slides) | 98 flush(slides, block) |
| 99 |
| 99 return slides | 100 return slides |
| 100 end | 101 end |
| 101 | 102 |
| OLD | NEW |