Add convenience geef_pkt:line([]) -> []
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
-define(SHA_LEN, 40).
|
||||
|
||||
-spec line(iolist()) -> iolist().
|
||||
line([]) ->
|
||||
[];
|
||||
line(Text) ->
|
||||
% prefix's own size + text size + LF
|
||||
Len = 4 + iolist_size(Text) + 1,
|
||||
|
||||
Reference in New Issue
Block a user