reduce: fix output
This commit is contained in:
parent
e32ab4bf65
commit
d87d54339d
|
@ -664,7 +664,7 @@ int main(int argc, char *argv[])
|
||||||
std::ofstream fout;
|
std::ofstream fout;
|
||||||
if (!print)
|
if (!print)
|
||||||
fout.open(outfilename.c_str());
|
fout.open(outfilename.c_str());
|
||||||
std::ostream &os = stdout ? std::cout : fout;
|
std::ostream &os = print ? std::cout : fout;
|
||||||
for (std::size_t i = 0; i < filedata.size(); i++) {
|
for (std::size_t i = 0; i < filedata.size(); i++) {
|
||||||
if (!filedata[i].empty())
|
if (!filedata[i].empty())
|
||||||
os << filedata[i] << std::endl;
|
os << filedata[i] << std::endl;
|
||||||
|
|
Loading…
Reference in New Issue