Skip to content

Commit

Permalink
Merge pull request #14 from breezedeus/dev
Browse files Browse the repository at this point in the history
bugfix
  • Loading branch information
breezedeus authored Feb 19, 2023
2 parents c694869 + bcee8a2 commit fe7f3e0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package:
rm -rf build
python setup.py sdist bdist_wheel

VERSION = 0.2.2
VERSION = 0.2.2.1
upload:
python -m twine upload dist/pix2text-$(VERSION)* --verbose

Expand Down
6 changes: 6 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release Notes

## Update 2023.02.19:发布 **V0.2.2.1**

主要变更:
* 修复bug。


## Update 2023.02.19:发布 **V0.2.2**

主要变更:
Expand Down
2 changes: 1 addition & 1 deletion pix2text/__version__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# coding: utf-8
# Copyright (C) 2022, [Breezedeus](https://github.com/breezedeus).

__version__ = '0.2.2'
__version__ = '0.2.2.1'
2 changes: 1 addition & 1 deletion pix2text/latex_ocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def find_all_left_or_right(latex, left_or_right='left'):
# 如 "\left \big("
while latex[end - 1] in ('\\', ' '):
end += 1
while latex[end].isalpha():
while end < len(latex) and latex[end].isalpha():
end += 1
ori_str = latex[start + prefix_len : end].strip()
# FIXME: ori_str中可能出现多个 '\left',此时需要分隔开
Expand Down

0 comments on commit fe7f3e0

Please sign in to comment.