<div>Similar behaviour to old tv.</div><div>Objects in tables supposed to be printed in a single line</div><div>and it looks ugly when a [...,10,...] integer list</div><div>creates a new-line.</div><div>---</div><div> lib/observer/src/observer_tv_table.erl | 20 +++++++++++++++++++-</div>
<div> 1 file changed, 19 insertions(+), 1 deletion(-)</div><div><br></div><div>diff --git a/lib/observer/src/observer_tv_table.erl b/lib/observer/src/observer_tv_table.erl</div><div>index d339a85..97d18ec 100644</div><div>
--- a/lib/observer/src/observer_tv_table.erl</div><div>+++ b/lib/observer/src/observer_tv_table.erl</div><div>@@ -762,7 +762,7 @@ format_tuple(_Tuple, 1, 0) -></div><div> format_list([]) -> "[]";</div><div>
format_list(List) -></div><div> case printable_list(List) of</div><div>- true -> io_lib:format("\"~ts\"", [List]);</div><div>+ true -> io_lib:format("\"~ts\"", [map_printable_list(List)]);</div>
<div> false -> [$[ | make_list(List)]</div><div> end.</div><div> </div><div>@@ -771,6 +771,24 @@ make_list([Last]) -></div><div> make_list([Head|Tail]) -></div><div> [format(Head), $,|make_list(Tail)].</div>
<div> </div><div>+map_printable_list([$\n|Cs]) -></div><div>+ [$\\, $n|map_printable_list(Cs)];</div><div>+map_printable_list([$\r|Cs]) -></div><div>+ [$\\, $r|map_printable_list(Cs)];</div><div>+map_printable_list([$\t|Cs]) -></div>
<div>+ [$\\, $t|map_printable_list(Cs)];</div><div>+map_printable_list([$\v|Cs]) -></div><div>+ [$\\, $v|map_printable_list(Cs)];</div><div>+map_printable_list([$\b|Cs]) -></div><div>+ [$\\, $b|map_printable_list(Cs)];</div>
<div>+map_printable_list([$\f|Cs]) -></div><div>+ [$\\, $f|map_printable_list(Cs)];</div><div>+map_printable_list([$\e|Cs]) -></div><div>+ [$\\, $e|map_printable_list(Cs)];</div><div>+map_printable_list([]) -> [];</div>
<div>+map_printable_list([C|Cs]) -></div><div>+ [C|map_printable_list(Cs)].</div><div>+</div><div> %% printable_list([Char]) -> bool()</div><div> %% Return true if CharList is a list of printable characters, else</div>
<div> %% false.</div><div>-- </div><div>1.7.10.1</div><div><br></div>