From f34444b62e8cd313d8b8a193f70235c4e9d02b38 Mon Sep 17 00:00:00 2001
From: Zhizhen He
Date: Tue, 21 Feb 2023 10:32:57 +0800
Subject: [PATCH] Fix typo
---
README.md | 2 +-
auto-completion/zsh/_buku | 2 +-
buku | 16 ++++++++--------
tests/test_bukuDb.py | 2 +-
4 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/README.md b/README.md
index d973d643..262cf505 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@
-
+
diff --git a/auto-completion/zsh/_buku b/auto-completion/zsh/_buku
index 3fec1be5..94696b0e 100644
--- a/auto-completion/zsh/_buku
+++ b/auto-completion/zsh/_buku
@@ -31,7 +31,7 @@ args=(
'(-o --open)'{-o,--open}'[open bookmarks in browser]'
'(--oa)--oa[browse all search results immediately]'
'(-p --print)'{-p,--print}'[show bookmark details]'
- '(-r --sreg)'{-r,--sreg}'[match a regular exression]:regex'
+ '(-r --sreg)'{-r,--sreg}'[match a regular expression]:regex'
'(--replace)--replace[replace a tag]:tag to replace'
'(-s --sany)'{-s,--sany}'[match any keyword]:keyword(s)'
'(-S --sall)'{-S,--sall}'[match all keywords]:keyword(s)'
diff --git a/buku b/buku
index f913523e..32756e6e 100755
--- a/buku
+++ b/buku
@@ -1565,7 +1565,7 @@ class BukuDb:
...
TypeError: index, low, or high variable is not integer
- Negative number on `high` and `low` paramaters when is_range is True
+ Negative number on `high` and `low` parameters when is_range is True
will log error and return False
>>> edb = buku.BukuDb(dbfile=NamedTemporaryFile().name)
@@ -1796,7 +1796,7 @@ class BukuDb:
> https://example.com
- Negative number on `high` and `low` paramaters when is_range is True
+ Negative number on `high` and `low` parameters when is_range is True
will log error and return False
>>> sdb.print_rec(low=-1, high=-1, is_range=True)
@@ -2210,7 +2210,7 @@ class BukuDb:
If destination file name ends with '.md', bookmarks are
exported to a Markdown file.
If destination file name ends with '.org' bookmarks are
- exported to a org file.
+ exported to an org file.
If destination file name ends with '.xbel' bookmarks are
exported to a XBEL file.
Otherwise, bookmarks are exported to a Firefox bookmarks.html
@@ -2579,7 +2579,7 @@ class BukuDb:
print('\nAuto-generated tag: %s' % newtag)
def importdb(self, filepath, tacit=False):
- """Import bookmarks from a HTML or a Markdown file.
+ """Import bookmarks from an HTML or a Markdown file.
Supports Firefox, Google Chrome, and IE exported HTML bookmarks.
Supports XBEL standard bookmarks.
@@ -3497,8 +3497,8 @@ def import_xbel(html_soup: BeautifulSoup, add_parent_folder_as_tag: bool, newtag
if add_parent_folder_as_tag:
# add parent folder as tag
if use_nested_folder_structure:
- # New method that would generalize for else case too
- # Stucture of folders
+ # New method that would generalize for else case to
+ # structure of folders
# folder
# title (folder name)
# folder
@@ -3579,8 +3579,8 @@ def import_html(html_soup: BeautifulSoup, add_parent_folder_as_tag: bool, newtag
if add_parent_folder_as_tag:
# add parent folder as tag
if use_nested_folder_structure:
- # New method that would generalize for else case too
- # Stucture of folders
+ # New method that would generalize for else case to
+ # structure of folders
# dt
# h3 (folder name)
# dl
diff --git a/tests/test_bukuDb.py b/tests/test_bukuDb.py
index fcfe66ae..cfe34959 100644
--- a/tests/test_bukuDb.py
+++ b/tests/test_bukuDb.py
@@ -611,7 +611,7 @@ def test_search_by_tags_enforces_space_seprations_exclusion(self):
]
self.assertEqual(results, expected)
- def test_search_and_open_in_broswer_by_range(self):
+ def test_search_and_open_in_browser_by_range(self):
# adding bookmarks
for bookmark in self.bookmarks:
self.bdb.add_rec(*bookmark)