From f5ca930b2e6b8b3f6003727db8a6dbffe52f1629 Mon Sep 17 00:00:00 2001 From: Andrew Thompson Date: Thu, 26 Apr 2012 16:39:39 -0400 Subject: [PATCH] Vertical tab support --- src/lager_trunc_io.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lager_trunc_io.erl b/src/lager_trunc_io.erl index b6a8b79..7c94858 100644 --- a/src/lager_trunc_io.erl +++ b/src/lager_trunc_io.erl @@ -358,7 +358,8 @@ escape($\n) -> "\\n"; escape($\r) -> "\\r"; escape($\e) -> "\\e"; escape($\f) -> "\\f"; -escape($\b) -> "\\b". +escape($\b) -> "\\b"; +escape($\v) -> "\\v". -ifdef(TEST). %%-------------------- @@ -487,6 +488,7 @@ binary_printing_test() -> ?assertEqual("<<\"hello\\rworld\">>", lists:flatten(format("~p", [<<"hello\rworld">>], 50))), ?assertEqual("<<\"hello\\eworld\">>", lists:flatten(format("~p", [<<"hello\eworld">>], 50))), ?assertEqual("<<\"hello\\fworld\">>", lists:flatten(format("~p", [<<"hello\fworld">>], 50))), + ?assertEqual("<<\"hello\\vworld\">>", lists:flatten(format("~p", [<<"hello\vworld">>], 50))), ?assertEqual(" hello", lists:flatten(format("~10s", [<<"hello">>], 50))), ok.