From 548f4e38b88fab0f3637ffbf3369262594873854 Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Mon, 10 Apr 2017 12:29:29 +0200 Subject: edoc: Fix an undefined function warning Commit 15a631c introduced an undefined function warning. When the new string module is merged to master, this commit can be reverted. --- lib/edoc/src/edoc_layout.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/edoc/src/edoc_layout.erl') diff --git a/lib/edoc/src/edoc_layout.erl b/lib/edoc/src/edoc_layout.erl index 71ba9a6676..5b1889ab06 100644 --- a/lib/edoc/src/edoc_layout.erl +++ b/lib/edoc/src/edoc_layout.erl @@ -773,7 +773,10 @@ string_length(Data) -> try iolist_size(Data) catch _:_ -> - try string:length(Data) + M = string, + F = length, + As = [Data], + try apply(M, F, As) catch _:_ -> 20 -- cgit v1.2.3