docling-core 2.31.0__py3-none-any.whl → 2.31.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.

@@ -535,7 +535,7 @@ class MarkdownDocSerializer(DocSerializer):
535
535
  ) -> SerializationResult:
536
536
  """Serialize a document out of its parts."""
537
537
  text_res = "\n\n".join([p.text for p in parts if p.text])
538
- if self.params.page_break_placeholder:
538
+ if self.requires_page_break():
539
539
  page_sep = self.params.page_break_placeholder or ""
540
540
  for full_match, _, _ in self._get_page_breaks(text=text_res):
541
541
  text_res = text_res.replace(full_match, page_sep)
@@ -543,6 +543,6 @@ class MarkdownDocSerializer(DocSerializer):
543
543
  return create_ser_result(text=text_res, span_source=parts)
544
544
 
545
545
  @override
546
- def requires_page_break(self):
546
+ def requires_page_break(self) -> bool:
547
547
  """Whether to add page breaks."""
548
548
  return self.params.page_break_placeholder is not None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: docling-core
3
- Version: 2.31.0
3
+ Version: 2.31.1
4
4
  Summary: A python library to define and validate data types in Docling.
5
5
  Home-page: https://github.com/docling-project
6
6
  License: MIT
@@ -31,7 +31,7 @@ docling_core/transforms/serializer/common.py,sha256=TC1EwHIp9PYcI8jeTKeavUAPtoun
31
31
  docling_core/transforms/serializer/doctags.py,sha256=mEmRWVuebcG5pZcR1_HX146cyUk0_FjaLQtMXSgh9hs,17870
32
32
  docling_core/transforms/serializer/html.py,sha256=Xq9CU5qZTDdwstizYqWNL_TFNDs9NHK_6JvvZk0TP98,34571
33
33
  docling_core/transforms/serializer/html_styles.py,sha256=-jBwS4EU7yfKoz0GSoxhwx90OmIKieO6TwPw57IuxcA,4692
34
- docling_core/transforms/serializer/markdown.py,sha256=YqThAYMsOWSg6nZnnmrUHZohn0QvfZzRqpLrB-Keev8,17873
34
+ docling_core/transforms/serializer/markdown.py,sha256=4thokWJIaF3dvpchjp-Y7NTSzUuXwTmfNey4MQj-c5I,17873
35
35
  docling_core/transforms/visualizer/__init__.py,sha256=gUfF25yiJ_KO46ZIUNqZQOZGy2PLx6gnnr6AZYxKHXI,35
36
36
  docling_core/transforms/visualizer/base.py,sha256=aEF7b3rHq6DVdX8zDYEPoq55BHDYe4Hh_97lBdcW4lY,555
37
37
  docling_core/transforms/visualizer/layout_visualizer.py,sha256=ulXxWGIl69-HMKDPFk_XKgNCgQeDNc969PVt_X0-drA,7823
@@ -73,8 +73,8 @@ 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.31.0.dist-info/LICENSE,sha256=2M9-6EoQ1sxFztTOkXGAtwUDJvnWaAHdB9BYWVwGkIw,1087
77
- docling_core-2.31.0.dist-info/METADATA,sha256=OohNxPwKcbRVVKm_kpa3HRFhYh9ZMVyBIlf3apF9hm4,5976
78
- docling_core-2.31.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
79
- docling_core-2.31.0.dist-info/entry_points.txt,sha256=oClcdb2L2RKx4jdqUykY16Kum_f0_whwWhGzIodyidc,216
80
- docling_core-2.31.0.dist-info/RECORD,,
76
+ docling_core-2.31.1.dist-info/LICENSE,sha256=2M9-6EoQ1sxFztTOkXGAtwUDJvnWaAHdB9BYWVwGkIw,1087
77
+ docling_core-2.31.1.dist-info/METADATA,sha256=O13NvxzbHR0wUzP_3yQbOFqSI63LUvCzWvXEkiqQePY,5976
78
+ docling_core-2.31.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
79
+ docling_core-2.31.1.dist-info/entry_points.txt,sha256=oClcdb2L2RKx4jdqUykY16Kum_f0_whwWhGzIodyidc,216
80
+ docling_core-2.31.1.dist-info/RECORD,,