Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1019)

Side by Side Diff: resources/slides_utils.lua

Issue 686853005: update slides (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « resources/slides_transitions.lua ('k') | src/utils/SkLua.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « resources/slides_transitions.lua ('k') | src/utils/SkLua.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698