diff options
Diffstat (limited to 'lib/edoc/src/edoc_layout.erl')
-rw-r--r-- | lib/edoc/src/edoc_layout.erl | 5 |
1 files changed, 4 insertions, 1 deletions
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 |