Commit d7f21a4d authored by veronicamars73's avatar veronicamars73
Browse files

Fixing no new line before date in file error

parent 629c0537
No preview for this file type
......@@ -3,11 +3,20 @@
- 18:37:22 more tests
- 18:37:39 more tests
- 18:43:24 more tests
# 28/06/2020
- 10:52:04 A message
- 11:24:10 the melody cant find you
# 29/06/2020
- 10:52:04 A message
- 11:24:10 Fearless tem aoty e red não
# 30/06/2020
- 09:52:24 Oh if you judge us we're all damned
- 10:38:46 Future nostalgia aoty
- 10:38:48 The good life
# 01/07/2020
- 10:30:41 Nostalgia aoty 2020
- 10:30:58 my name is jonas
- 10:44:25 Future nostalgia aoty
- 10:45:36 The you good life
......@@ -75,7 +75,7 @@ void Diary::write(){
return;
}else{
if (exist==-1){
record << "# " << messages[message_size].date.get_date_string() << std::endl;
record << "\n# " << messages[message_size].date.get_date_string() << std::endl;
}
record <<"- "<< messages[message_size].time.get_time_string()<< " " << messages[message_size].content << std::endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment