aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-04-10 12:42:56 +0200
committerHans Bolinder <[email protected]>2017-04-10 12:42:56 +0200
commitb16a1de7e939d3f2c1d8f70ca6b168468608b975 (patch)
tree7a302af5ea37e6c9260e1003c215421d445a16ce
parent8fd5553684f0cdf2e7c35733d4b86d6a73f9b576 (diff)
parent548f4e38b88fab0f3637ffbf3369262594873854 (diff)
downloadotp-b16a1de7e939d3f2c1d8f70ca6b168468608b975.tar.gz
otp-b16a1de7e939d3f2c1d8f70ca6b168468608b975.tar.bz2
otp-b16a1de7e939d3f2c1d8f70ca6b168468608b975.zip
Merge branch 'hasse/unicode_atoms/OTP-14285'
* hasse/unicode_atoms/OTP-14285: edoc: Fix an undefined function warning
-rw-r--r--lib/edoc/src/edoc_layout.erl5
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