Micah Warren
0b16d5ebcd
Fixed unused vars warnings
Also removed commented out code.
12 lat temu
Micah Warren
06103bbf9a
Quick fix for issue#64
There are still differences between the erlang io_lib and the trunc_io in
how ~p/~P are handled, but a first step is useful here.
12 lat temu
Andrew Thompson
b504747037
Simplify internal function because it is never passed a deep list
Thanks for Kostis for helping me figure this one out
13 lat temu
Andrew Thompson
f43fa83bcc
Fix a bug with how the remaining free space is calculated
13 lat temu
Andrew Thompson
f918156b10
Fix a bug with the calculation of the remaining length
If the result of the string format was longer than the remaining length,
the returned remaining length would be negative, which would make very
strange things happen.
13 lat temu
Andrew Thompson
3311702a6d
Add builtin chomping to lager_format
13 lat temu
Andrew Thompson
31d9529e3e
Default to treating lists as strings, (and set it false for ~w)
13 lat temu
Andrew Thompson
9c6ce62ff8
Fix some more formatting bugs
13 lat temu
Andrew Thompson
e5b58fc71e
Implement print options for trunc_io so ~s/~p/~w emulation is more accurate
Specifically, the handling of lists/binaries/atoms is closer to
io_lib:format's behaviour, and some regular expressions are eliminated.
13 lat temu
Andrew Thompson
e45d5bc3c9
Implement an alternative and much faster lager_trunc_io:format/3
13 lat temu