Skip to content

Commit

Permalink
Merge pull request #111 from pymupdf/v0.0.12
Browse files Browse the repository at this point in the history
Ensure bullets are a tuple
  • Loading branch information
JorjMcKie authored Aug 23, 2024
2 parents 87c45a9 + 520cf34 commit 78952f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pymupdf4llm/pymupdf4llm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .helpers.pymupdf_rag import IdentifyHeaders, to_markdown

__version__ = "0.0.11"
__version__ = "0.0.12"
version = __version__
version_tuple = tuple(map(int, version.split(".")))

Expand Down
19 changes: 11 additions & 8 deletions pymupdf4llm/pymupdf4llm/helpers/pymupdf_rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,17 @@
if fitz.pymupdf_version_tuple < (1, 24, 2):
raise NotImplementedError("PyMuPDF version 1.24.2 or later is needed.")

bullet = [
"- ",
"* ",
chr(0xF0A7),
chr(0xF0B7),
chr(0xB7),
chr(8226),
] + list(map(chr, range(9642, 9680)))
bullet = tuple(
[
"- ",
"* ",
chr(0xF0A7),
chr(0xF0B7),
chr(0xB7),
chr(8226),
]
+ list(map(chr, range(9642, 9680)))
)

GRAPHICS_TEXT = "\n![](%s)\n"

Expand Down

0 comments on commit 78952f1

Please sign in to comment.