mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Datafile: Added \n to intervals
This commit is contained in:
parent
9904e7ff89
commit
3b26979096
1 changed files with 4 additions and 2 deletions
|
@ -118,7 +118,8 @@ void Datafile::commit ()
|
|||
_file.append (std::string("")); // Seek to end of file
|
||||
|
||||
// Write out all the added lines.
|
||||
_file.append (_lines_added);
|
||||
for (auto& line : _lines_added)
|
||||
_file.write_raw (line + "\n");
|
||||
|
||||
_lines_added.clear ();
|
||||
_file.close ();
|
||||
|
@ -140,7 +141,8 @@ void Datafile::commit ()
|
|||
_file.write_raw (line + "\n");
|
||||
|
||||
// Write out all the added lines.
|
||||
_file.append (_lines_added);
|
||||
for (auto& line : _lines_added)
|
||||
_file.write_raw (line + "\n");
|
||||
|
||||
_lines_added.clear ();
|
||||
_file.close ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue