Fix print_comments when output is not stdout

This commit is contained in:
Frédéric Mangano-Tarumi 2020-10-11 17:37:51 +02:00
parent 7206604f85
commit a1dcc8c47e

View File

@ -177,7 +177,7 @@ void ot::print_comments(const std::list<std::string>& comments, FILE* output)
has_control = true;
}
fwrite(local.data(), 1, local.size(), output);
putchar('\n');
putc('\n', output);
}
if (info_lost)
fputs("warning: Some tags have been transliterated to your system encoding.\n", stderr);