aboutsummaryrefslogtreecommitdiffstats
path: root/lib/syntax_tools/src
diff options
context:
space:
mode:
authorMark Bucciarelli <[email protected]>2016-05-26 21:58:18 -0400
committerHans Bolinder <[email protected]>2016-07-06 10:13:36 +0200
commit0969ecad9e2978bacb7b27f663cd16aa5ea6c460 (patch)
tree7f6996011c04e6687602a3b7adb1203e6673e630 /lib/syntax_tools/src
parent3b409021a70427bb2fe3834707edf822b6afce2d (diff)
downloadotp-0969ecad9e2978bacb7b27f663cd16aa5ea6c460.tar.gz
otp-0969ecad9e2978bacb7b27f663cd16aa5ea6c460.tar.bz2
otp-0969ecad9e2978bacb7b27f663cd16aa5ea6c460.zip
syntax_tools: Make erl_tidy work on input file with tilde
See also http://bugs.erlang.org/browse/ERL-151.
Diffstat (limited to 'lib/syntax_tools/src')
-rw-r--r--lib/syntax_tools/src/erl_tidy.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/syntax_tools/src/erl_tidy.erl b/lib/syntax_tools/src/erl_tidy.erl
index f2de12b410..3a37ca43bd 100644
--- a/lib/syntax_tools/src/erl_tidy.erl
+++ b/lib/syntax_tools/src/erl_tidy.erl
@@ -414,7 +414,7 @@ write_module(Tree, Name, Opts) ->
print_module(Tree, Opts) ->
Printer = proplists:get_value(printer, Opts),
- io:format(Printer(Tree, Opts)).
+ io:put_chars(Printer(Tree, Opts)).
output(FD, Printer, Tree, Opts) ->
io:put_chars(FD, Printer(Tree, Opts)),