diff --git a/gtimelog.rst b/gtimelog.rst index 2a16051d..5783c4e1 100644 --- a/gtimelog.rst +++ b/gtimelog.rst @@ -13,7 +13,7 @@ minimal time logging application :Manual section: 1 -SYNOPSYS +SYNOPSIS ======== **gtimelog** [options] diff --git a/src/gtimelog/main.py b/src/gtimelog/main.py index 59258325..2f917beb 100644 --- a/src/gtimelog/main.py +++ b/src/gtimelog/main.py @@ -238,7 +238,7 @@ def search_callback(source, result): # if several ones match (e.g. the user tried several different # usernames). This is good because if the wrong username gets # picked and is rejected by the server, we'll ask the user - # again and then rememebr the more recently provided answer. + # again and then remember the more recently provided answer. # This is bad only if multiple sets of credentials are valid # but cause different data to be returned -- the user will # be forced to launch Seahorse and remove the saved credentials @@ -1678,7 +1678,7 @@ def reposition_cursor(self): self.get_buffer().place_cursor(where) def scroll_to_end(self): - # If I do the scrolling immediatelly, it won't scroll to the end, usually. + # If I do the scrolling immediately, it won't scroll to the end, usually. # If I delay the scrolling, it works every time. # I only wish I knew how to disable the scroll animation. GLib.idle_add(self._scroll_to_end) diff --git a/src/gtimelog/tests/test_main.py b/src/gtimelog/tests/test_main.py index 860b93fa..e838ae87 100644 --- a/src/gtimelog/tests/test_main.py +++ b/src/gtimelog/tests/test_main.py @@ -22,7 +22,7 @@ def test_prepare_message_ascii(self): sender='ASCII Name ', recipient='activity@example.com', subject='Report for Mr. Plain', - body='These are the activites done by Mr. Plain:\n...\n', + body='These are the activities done by Mr. Plain:\n...\n', ) self.assertEqual("ASCII Name ", msg["From"]) self.assertEqual("activity@example.com", msg["To"]) @@ -36,7 +36,7 @@ def test_prepare_message_ascii(self): Subject: Report for Mr. Plain User-Agent: gtimelog/0.11.dev0 - These are the activites done by Mr. Plain: + These are the activities done by Mr. Plain: ... ''').replace('0.11.dev0', __version__) self.assertEqual(expected, msg.as_string()) @@ -47,7 +47,7 @@ def test_prepare_message_unicode(self): sender='Ünicødę Name ', recipient='Anöther nąme ', subject='Report for Mr. ☃', - body='These are the activites done by Mr. ☃:\n...\n', + body='These are the activities done by Mr. ☃:\n...\n', ) expected = textwrap.dedent('''\ MIME-Version: 1.0 @@ -58,7 +58,7 @@ def test_prepare_message_unicode(self): Subject: =?utf-8?b?UmVwb3J0IGZvciBNci4g4piD?= User-Agent: gtimelog/0.11.dev0 - VGhlc2UgYXJlIHRoZSBhY3Rpdml0ZXMgZG9uZSBieSBNci4g4piDOgouLi4K + VGhlc2UgYXJlIHRoZSBhY3Rpdml0aWVzIGRvbmUgYnkgTXIuIOKYgzoKLi4uCg== ''').replace('0.11.dev0', __version__) self.assertEqual(expected, msg.as_string()) diff --git a/src/gtimelog/timelog.py b/src/gtimelog/timelog.py index 6994d7bc..28208666 100644 --- a/src/gtimelog/timelog.py +++ b/src/gtimelog/timelog.py @@ -441,7 +441,7 @@ def to_csv_daily(self, output, title_row=True): "slacking (hours)", "work (hours)"]) # sum timedeltas per date - # timelog must be cronological for this to be dependable + # timelog must be chronological for this to be dependable d0 = datetime.timedelta(0) days = {} # date -> [time_started, slacking, work]