Module pretty
The Pretty module provides a utility for printing Lua tables in a more readable format.
Functions
| tprint (tbl, indent) | Prints a table with indentation for better readability. |
Tables
| pretty | The pretty module |
Functions
- tprint (tbl, indent)
-
Prints a table with indentation for better readability.
Parameters:
- tbl {table} The table to print
- indent {number} The indentation level (default is 0)
Returns:
-
{string}
A string representation of the table with indentation