Permalink
Browse files

Merge branch 'ats/observer_tv_improper_lists/OTP-10931' into maint

* ats/observer_tv_improper_lists/OTP-10931:
  Fix observer table viewer crash on formatting improper lists
  • Loading branch information...
2 parents f1ec39a + c80de76 commit 9bcc7fe4e2983827bfb1fcb09963a49dfaf9a2d6 @gustehn gustehn committed Mar 12, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/observer/src/observer_tv_table.erl
@@ -784,8 +784,10 @@ format_list(List) ->
make_list([Last]) ->
[format(Last), $]];
+make_list([Head|Tail]) when is_list(Tail) ->
+ [format(Head), $,|make_list(Tail)];
make_list([Head|Tail]) ->
- [format(Head), $,|make_list(Tail)].
+ [format(Head), $|, format(Tail), $]].
map_printable_list([$\n|Cs]) ->
[$\\, $n|map_printable_list(Cs)];

0 comments on commit 9bcc7fe

Please sign in to comment.