Skip to content

Commit 78952f1

Browse files
authored
Merge pull request #111 from pymupdf/v0.0.12
Ensure bullets are a tuple
2 parents 87c45a9 + 520cf34 commit 78952f1

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

pymupdf4llm/pymupdf4llm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from .helpers.pymupdf_rag import IdentifyHeaders, to_markdown
22

3-
__version__ = "0.0.11"
3+
__version__ = "0.0.12"
44
version = __version__
55
version_tuple = tuple(map(int, version.split(".")))
66

pymupdf4llm/pymupdf4llm/helpers/pymupdf_rag.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,17 @@
4040
if fitz.pymupdf_version_tuple < (1, 24, 2):
4141
raise NotImplementedError("PyMuPDF version 1.24.2 or later is needed.")
4242

43-
bullet = [
44-
"- ",
45-
"* ",
46-
chr(0xF0A7),
47-
chr(0xF0B7),
48-
chr(0xB7),
49-
chr(8226),
50-
] + list(map(chr, range(9642, 9680)))
43+
bullet = tuple(
44+
[
45+
"- ",
46+
"* ",
47+
chr(0xF0A7),
48+
chr(0xF0B7),
49+
chr(0xB7),
50+
chr(8226),
51+
]
52+
+ list(map(chr, range(9642, 9680)))
53+
)
5154

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

0 commit comments

Comments
 (0)