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 | 54b05b7f5250b3c468aae62b4ee3cd0a8a669b81 (patch) | |
| tree | d0c8de4967205a9d91d538c1f90aac4cbc4b02f5 | |
| parent | 22bb79562a0f876c96d78f913a9ad221698354e6 (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(","); |
