diff options
| author | ame <[email protected]> | 2023-12-30 14:43:50 -0600 |
|---|---|---|
| committer | ame <[email protected]> | 2023-12-30 14:43:50 -0600 |
| commit | 123d5ad36e406e3c4ac75d5f040e02891d13ba24 (patch) | |
| tree | d0c8de4967205a9d91d538c1f90aac4cbc4b02f5 | |
| parent | 553216c9a9456e969cac2ed44047389735587803 (diff) | |
better pprint
| -rw-r--r-- | readme.md | 2 | ||||
| -rw-r--r-- | src/io.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -8,5 +8,3 @@ todo: - (working on seperatley) gui for graphs - fix -O3 breaking some hashes (not sure if i care) - - - fix pprint (make it look better) @@ -111,6 +111,8 @@ void i_pprint(lua_State* L, int indent, int skip_indent){ if(lua_type(L,-2) == LUA_TSTRING){ if(!skip) print_indentation(indent); printf(" '%s'"color_gray": "color_reset, lua_tostring(L,-2)); + } else { + if(!skip) print_indentation(indent + 1); } i_pprint(L,indent+1,1); printf(","); |
