Skip to content

Commit

Permalink
Testing VI
Browse files Browse the repository at this point in the history
Arggghhh!
  • Loading branch information
Mileter committed Jun 26, 2024
1 parent fb6bc25 commit e39ffaa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ void printHelp()

void autoNewline(string fileIn, string fileOut, int maxKerning)
{
const char* bak = ".bak";
string temp = fileOut+".bak";
ifstream fin(fileIn);
ofstream fout(fileOut+".bak");
ofstream fout(temp);
renewline(fin, fout, maxKerning);
fin.close();
fout.close();
rename(fileOut.c_str()+bak, fileOut.c_str());
rename(temp.c_str()+bak, fileOut.c_str());
}

unordered_map<string, function<void()>> cmds = {
Expand Down

0 comments on commit e39ffaa

Please sign in to comment.