diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-11-06 23:28:09 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-11-06 23:28:09 +0000 |
| commit | d1b888f38fe7b1026befc86692d8fe86d8adc352 (patch) | |
| tree | 6b3b804cf77a74511937cc68e0e27132ad4fe375 | |
| parent | f508300f5b1c27b4ab55abcc55e9781919f8bc0d (diff) | |
.\n in emails appears to screw things up, so add a space.
| -rw-r--r-- | src/lib/log.cc | 2 | ||||
| -rw-r--r-- | test/file_log_test.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/log.cc b/src/lib/log.cc index 934664915..daef13f77 100644 --- a/src/lib/log.cc +++ b/src/lib/log.cc @@ -151,7 +151,7 @@ FileLog::head_and_tail (int amount) const out += string (buffer); if (tail_amount > 0) { - out += "\n.\n.\n.\n"; + out += "\n .\n .\n .\n"; fseek (f, - tail_amount - 1, SEEK_END); diff --git a/test/file_log_test.cc b/test/file_log_test.cc index 1cf7a7757..a587b87ef 100644 --- a/test/file_log_test.cc +++ b/test/file_log_test.cc @@ -26,5 +26,5 @@ BOOST_AUTO_TEST_CASE (file_log_test) { FileLog log ("test/data/short.log"); BOOST_CHECK_EQUAL (log.head_and_tail (1024), "This is a short log.\nWith only two lines.\n"); - BOOST_CHECK_EQUAL (log.head_and_tail (8), "This is \n.\n.\n.\no lines.\n"); + BOOST_CHECK_EQUAL (log.head_and_tail (8), "This is \n .\n .\n .\no lines.\n"); } |
