Skip to content

Commit 08cc0a9

Browse files
authored
Merge pull request #108 from aeternity/fix_doc_generation
Fix document generation script
2 parents 7497345 + 84f20ab commit 08cc0a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aeb_fate_generate_docs.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
generate_documentation(Filename, Fields) ->
1515
generate_documentation(Filename, Fields, fun(_) -> true end).
1616
generate_documentation(Filename, Fields, Filter) when is_function(Filter, 1) ->
17-
{ok, File} = file:open(Filename, [write]),
17+
{ok, File} = file:open(Filename, [write, {encoding, utf8}]),
1818
Header =
1919
lists:flatten(
2020
"|" ++ [" " ++ header_name(F) ++ " |" || F <- Fields] ++ "\n"
@@ -27,7 +27,7 @@ generate_documentation(Filename, Fields, Filter) when is_function(Filter, 1) ->
2727
lists:flatten(
2828
[gen_doc_for_op(Op, Fields)
2929
++ "\n" || Op <- aeb_fate_generate_ops:get_ops(), Filter(Op)]),
30-
io:format(File, "~s~s~s\n", [Header, Separator, Instructions]),
30+
io:format(File, "~ts~ts~ts\n", [Header, Separator, Instructions]),
3131
file:close(File).
3232

3333
header_name(opname) ->

0 commit comments

Comments
 (0)