1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-29 16:47:56 +00:00

Merge pull request #1156 from IvoLeal72/patch-1

Fixed usage example of textuils.pagedTabulate
This commit is contained in:
Jonathan Coates
2022-08-28 16:41:40 +01:00
committed by GitHub

View File

@@ -259,7 +259,7 @@ input should the whole output not fit on the display.
local rows = {} local rows = {}
for i = 1, 30 do rows[i] = {("Row #%d"):format(i), math.random(1, 400)} end for i = 1, 30 do rows[i] = {("Row #%d"):format(i), math.random(1, 400)} end
textutils.tabulate(colors.orange, {"Column", "Value"}, colors.lightBlue, table.unpack(rows)) textutils.pagedTabulate(colors.orange, {"Column", "Value"}, colors.lightBlue, table.unpack(rows))
]] ]]
function pagedTabulate(...) function pagedTabulate(...)
return tabulateCommon(true, ...) return tabulateCommon(true, ...)