diff --git a/src/cth_junit.erl b/src/cth_junit.erl index 7ae39b2..d9e8650 100644 --- a/src/cth_junit.erl +++ b/src/cth_junit.erl @@ -117,6 +117,7 @@ get_suite(TCs) -> terminate(State) -> {ok,D} = file:open(State#state.filepath,[write]), + io:format(D, "", []), io:format(D, to_xml(State#state.test_suites), []), catch file:sync(D), catch file:close(D). @@ -145,7 +146,7 @@ sanitize([$>|T]) -> sanitize([$<|T]) -> "<" ++ sanitize(T); sanitize([$"|T]) -> - """ ++ sanitize(T); + """ ++ sanitize(T); sanitize([$'|T]) -> "'" ++ sanitize(T); sanitize([$&|T]) ->