Skip to content

Commit

Permalink
Merge pull request jarun#678 from hezhizhen/typo
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
jarun authored Feb 21, 2023
2 parents 0f33a0b + f34444b commit 61f10d1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<a href="https://repology.org/project/buku/versions"><img src="https://repology.org/badge/tiny-repos/buku.svg?header=repos" alt="Availability"></a>
<a href="https://pypi.org/project/buku/"><img src="https://img.shields.io/pypi/v/buku.svg?maxAge=600" alt="PyPI" /></a>
<a href="https://circleci.com/gh/jarun/workflows/buku"><img src="https://img.shields.io/circleci/project/github/jarun/buku.svg" alt="Build Status" /></a>
<a href="http://buku.readthedocs.io/en/latest/?badge=latest"><img src="https://readthedocs.org/projects/buku/badge/?version=latest" alt="Docs Status" /></a>
<a href="https://buku.readthedocs.io/en/latest/?badge=latest"><img src="https://readthedocs.org/projects/buku/badge/?version=latest" alt="Docs Status" /></a>
<a href="https://en.wikipedia.org/wiki/Privacy-invasive_software"><img src="https://img.shields.io/badge/privacy-✓-crimson" alt="Privacy Awareness" /></a>
<a href="https://github.com/jarun/buku/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-GPLv3-yellowgreen.svg?maxAge=2592000" alt="License" /></a>
</p>
Expand Down
2 changes: 1 addition & 1 deletion auto-completion/zsh/_buku
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
Expand Down
16 changes: 8 additions & 8 deletions buku
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -1796,7 +1796,7 @@ class BukuDb:
> https://example.com
<BLANKLINE>
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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_bukuDb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 61f10d1

Please sign in to comment.