Skip to content

Commit 3a3c8f6

Browse files
authored
fix(pptx)!: assign pptx notes to ContentLayer.NOTES (#3341)
Signed-off-by: Matvei Smirnov <vdalekesmirnov@gmail.com>
1 parent 65ef180 commit 3a3c8f6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docling/backend/mspowerpoint_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ def handle_groups(shape, parent_slide, slide_ind, doc, slide_size):
756756
parent=parent_slide,
757757
text=notes_text,
758758
prov=prov,
759-
content_layer=ContentLayer.FURNITURE,
759+
content_layer=ContentLayer.NOTES,
760760
)
761761

762762
return doc

tests/data/groundtruth/docling_v2/powerpoint_sample.pptx.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@
463463
"$ref": "#/groups/1"
464464
},
465465
"children": [],
466-
"content_layer": "furniture",
466+
"content_layer": "notes",
467467
"label": "text",
468468
"prov": [
469469
{
@@ -979,7 +979,7 @@
979979
"$ref": "#/groups/3"
980980
},
981981
"children": [],
982-
"content_layer": "furniture",
982+
"content_layer": "notes",
983983
"label": "text",
984984
"prov": [
985985
{

0 commit comments

Comments
 (0)