docling-core 2.34.0__py3-none-any.whl → 2.34.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of docling-core might be problematic. Click here for more details.
- docling_core/types/doc/document.py +9 -5
- {docling_core-2.34.0.dist-info → docling_core-2.34.1.dist-info}/METADATA +1 -1
- {docling_core-2.34.0.dist-info → docling_core-2.34.1.dist-info}/RECORD +7 -7
- {docling_core-2.34.0.dist-info → docling_core-2.34.1.dist-info}/WHEEL +0 -0
- {docling_core-2.34.0.dist-info → docling_core-2.34.1.dist-info}/entry_points.txt +0 -0
- {docling_core-2.34.0.dist-info → docling_core-2.34.1.dist-info}/licenses/LICENSE +0 -0
- {docling_core-2.34.0.dist-info → docling_core-2.34.1.dist-info}/top_level.txt +0 -0
|
@@ -2167,7 +2167,10 @@ class DoclingDocument(BaseModel):
|
|
|
2167
2167
|
|
|
2168
2168
|
"""
|
|
2169
2169
|
if not isinstance(parent, (OrderedList, UnorderedList)):
|
|
2170
|
-
|
|
2170
|
+
warnings.warn("ListItem's parent must be a list group.", DeprecationWarning)
|
|
2171
|
+
|
|
2172
|
+
if not parent:
|
|
2173
|
+
parent = self.body
|
|
2171
2174
|
|
|
2172
2175
|
if not orig:
|
|
2173
2176
|
orig = text
|
|
@@ -4270,11 +4273,12 @@ class DoclingDocument(BaseModel):
|
|
|
4270
4273
|
item.parent.resolve(doc=self), (OrderedList, UnorderedList)
|
|
4271
4274
|
)
|
|
4272
4275
|
):
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
else:
|
|
4276
|
+
if isinstance(prev, ListItem) and (
|
|
4277
|
+
prev.parent is None or prev.parent.resolve(self) == self.body
|
|
4278
|
+
): # case of continuing list
|
|
4277
4279
|
misplaced_list_items[-1].append(item)
|
|
4280
|
+
else: # case of new list
|
|
4281
|
+
misplaced_list_items.append([item])
|
|
4278
4282
|
prev = item
|
|
4279
4283
|
|
|
4280
4284
|
for curr_list_items in reversed(misplaced_list_items):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: docling-core
|
|
3
|
-
Version: 2.34.
|
|
3
|
+
Version: 2.34.1
|
|
4
4
|
Summary: A python library to define and validate data types in Docling.
|
|
5
5
|
Author-email: Cesar Berrospi Ramis <ceb@zurich.ibm.com>, Panos Vagenas <pva@zurich.ibm.com>, Michele Dolfi <dol@zurich.ibm.com>, Christoph Auer <cau@zurich.ibm.com>, Peter Staar <taa@zurich.ibm.com>
|
|
6
6
|
Maintainer-email: Panos Vagenas <pva@zurich.ibm.com>, Michele Dolfi <dol@zurich.ibm.com>, Christoph Auer <cau@zurich.ibm.com>, Peter Staar <taa@zurich.ibm.com>, Cesar Berrospi Ramis <ceb@zurich.ibm.com>
|
|
@@ -40,7 +40,7 @@ docling_core/types/__init__.py,sha256=MVRSgsk5focwGyAplh_TRR3dEecIXpd98g_u3zZ5HX
|
|
|
40
40
|
docling_core/types/base.py,sha256=PusJskRVL19y-hq0BgXr5e8--QEqSqLnFNJ8UbOqW88,8318
|
|
41
41
|
docling_core/types/doc/__init__.py,sha256=bysJn2iwjAHwThSWDPXEdVUUij7p_ax12_nx2_0CMdg,653
|
|
42
42
|
docling_core/types/doc/base.py,sha256=ndXquBrOKTFQApIJ5s2-zstj3xlVKRbJDSId0KOQnUg,14817
|
|
43
|
-
docling_core/types/doc/document.py,sha256=
|
|
43
|
+
docling_core/types/doc/document.py,sha256=hQ4eXNjqbAQ2Tklr2RM7Xy0vZLwdoTymSQuJGskSOEw,148336
|
|
44
44
|
docling_core/types/doc/labels.py,sha256=vp4h3e7AmBvezRmgrfuPehjAHTZOufphErLB4ENhdME,7171
|
|
45
45
|
docling_core/types/doc/page.py,sha256=1JMPwglaTITBvg959L_pcWPb-fXoDYGh-e_tGZMzVMQ,41060
|
|
46
46
|
docling_core/types/doc/tokens.py,sha256=z22l9J81_sg9CYMvOuLmPuLsNT7h_s7wao2UT89DvI8,9278
|
|
@@ -73,9 +73,9 @@ docling_core/utils/generate_jsonschema.py,sha256=uNX1O5XnjyB5nA66XqZXTt3YbGuR2ty
|
|
|
73
73
|
docling_core/utils/legacy.py,sha256=DrI3QGoL755ZCIoKHF74-pTWm8R0zfFo2C2vB5dT2aY,24463
|
|
74
74
|
docling_core/utils/validate.py,sha256=aQ11UbFyl8iD_N7yTTZmm_VVeXz8KcCyn3GLXgkfYRM,2049
|
|
75
75
|
docling_core/utils/validators.py,sha256=azcrndLzhNkTWnbFSu9shJ5D3j_znnLrIFA5R8hzmGU,2798
|
|
76
|
-
docling_core-2.34.
|
|
77
|
-
docling_core-2.34.
|
|
78
|
-
docling_core-2.34.
|
|
79
|
-
docling_core-2.34.
|
|
80
|
-
docling_core-2.34.
|
|
81
|
-
docling_core-2.34.
|
|
76
|
+
docling_core-2.34.1.dist-info/licenses/LICENSE,sha256=2M9-6EoQ1sxFztTOkXGAtwUDJvnWaAHdB9BYWVwGkIw,1087
|
|
77
|
+
docling_core-2.34.1.dist-info/METADATA,sha256=CnJF6fq7wPKEcfPhihxBZP0QFYf1Y5TkVKCHflpKKw0,6453
|
|
78
|
+
docling_core-2.34.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
79
|
+
docling_core-2.34.1.dist-info/entry_points.txt,sha256=ER4zROQWkFMHIrY-oqY5E4HeCcCIg8dLkNztYGxdb7c,59
|
|
80
|
+
docling_core-2.34.1.dist-info/top_level.txt,sha256=O-tcXpGiurlud-1ZxMq1b-OmrfAVA4sajcgWU32RtfA,13
|
|
81
|
+
docling_core-2.34.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|